Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T, int N = std::is_integral<T>::value>
- struct woo
- {
- enum { value = 1 };
- };
- template <typename T>
- struct woo<T, 0>
- {
- enum { value = 0 };
- };template <typename T, int N = std::is_integral<T>::value>
- struct woo
- {
- enum { value = 1 };
- };
- template <typename T>
- struct woo<T, 0>
- {
- enum { value = 0 };
- };
- printf("%i\n", woo<float>::value);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement