Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thomaswatters/7db9846f13ac6580eb6ea9416f29efc0 to your computer and use it in GitHub Desktop.
Save thomaswatters/7db9846f13ac6580eb6ea9416f29efc0 to your computer and use it in GitHub Desktop.
// in your utilities classheader
template<typename T>
osal::uint32_t toUnsigned32(const T& t)
{
return t;
}
// you can put this in the utilities class header but probably belongs in datamodelenumerant header
template<>
osal::uint32_t toUnsigned32(const DataModelEnumerant& t)
{
return t.getIntegerValue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment