Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. template <typename T, int N = std::is_integral<T>::value>
  2. struct woo
  3. {
  4.     enum { value = 1 };
  5. };
  6.  
  7. template <typename T>
  8. struct woo<T, 0>
  9. {
  10.     enum { value = 0 };
  11. };template <typename T, int N = std::is_integral<T>::value>
  12. struct woo
  13. {
  14.     enum { value = 1 };
  15. };
  16.  
  17. template <typename T>
  18. struct woo<T, 0>
  19. {
  20.     enum { value = 0 };
  21. };
  22.  
  23.     printf("%i\n", woo<float>::value);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement