Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created June 23, 2011 22:06
Show Gist options
  • Save springmeyer/1043755 to your computer and use it in GitHub Desktop.
Save springmeyer/1043755 to your computer and use it in GitHub Desktop.
template <typename T> struct is_pod_impl
{
static const bool value = (::boost::type_traits::ice_or< ::boost::is_scalar<T>::value, ::boost::is_void<T>::value, __is_pod(T) >::value);
};
template <typename T, std::size_t sz>
struct is_pod_impl<T[sz]>
: public is_pod_impl<T>
{
};
# 124 "/opt/boost-trunk/include/boost/type_traits/is_pod.hpp"
template<> struct is_pod_impl< void > { public: static const bool value = (true); };
template<> struct is_pod_impl< void const > { public: static const bool value = (true); };
template<> struct is_pod_impl< void volatile > { public: static const bool value = (true); };
template<> struct is_pod_impl< void const volatile > { public: static const bool value = (true); };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment