Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. typedef enum class Foobar : int {
  2.     NONE = 0,
  3.     FOO = 1,
  4.     BAR = 2
  5. } Foobar;
  6.  
  7.     typename std::enable_if<T == Foobar::FOO, std::underlying_type<Foobar>::type>::type base = static_cast<std::underlying_type<Foobar>::type>(Foobar::NONE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement