Created
October 28, 2019 14:05
-
-
Save palikar/a971804665f9e83537abc7aa3a8d4e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename... Ts> | |
struct all_pod; | |
template <typename Head, typename... Tail> | |
struct all_pod<Head, Tail...> | |
{ | |
static const bool value = std::is_pod<Head>::value && all_pod<Tail...>::value; | |
}; | |
template <typename T> | |
struct all_pod<T> | |
{ | |
static const bool value = std::is_pod<T>::value; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment