Created
June 24, 2019 18:52
-
-
Save thomaswatters/7db9846f13ac6580eb6ea9416f29efc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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