Created
October 9, 2020 20:33
-
-
Save dirocco/0e23867d0ea9ab2a23dd6dcaba065f53 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
template<typename E> | |
constexpr typename std::underlying_type<E>::type toBase(E e) noexcept | |
{ | |
return static_cast<typename std::underlying_type<E>::type>(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment