Check for arguments type in a variadic template declaration
I got a plain variadic template declaration, just like the classic one: template <typename... Arguments> class VariadicTemplate; What I need to achieve is in by letting the VariadicTemplate class do perform some type checking; the variadic template should check in some iterative form that all the arguments received should be let say of the type <Foo> . I have seen something similar somewhere but now I can not recognize where it was :P struct Foo {}; #include <type_traits> template<class T, class...> struct are_same : std::true_type {}; template<class T, class U, class... TT> struct are_same<T,