Guest User

Untitled

a guest
Dec 12th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. using MyVt = std::variant<int, float>;
  2. static_assert( MyVt::has_type< bool >::value, "oops, forgot bool");
  3.  
  4. static_assert( mpl::has_key< MyVt::typelist, T >::value, "oops, forgot T");
Add Comment
Please, Sign In to add comment