Skip to content

Instantly share code, notes, and snippets.

@palikar
Created October 28, 2019 14:05
Show Gist options
  • Save palikar/a971804665f9e83537abc7aa3a8d4e9e to your computer and use it in GitHub Desktop.
Save palikar/a971804665f9e83537abc7aa3a8d4e9e to your computer and use it in GitHub Desktop.
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