Guest User

Untitled

a guest
May 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void _void_f(){}
  2.  
  3. template<typename T, typename ENABLE = void>
  4. struct is_constructible_default {
  5. static const bool value = false;
  6. };
  7.  
  8. template<typename T>
  9. struct is_constructible_default<T, typename std::enable_if<std::is_same<decltype((T()), _void_f()),void>::value>::type> {
  10. static const bool value = true;
  11. }
Add Comment
Please, Sign In to add comment