// author: Filip Roséen // source: http://b.atch.se/posts/constexpr-meta-container #include "type_list.hpp" #include "meta_counter.hpp" #include "meta_list.hpp" #include // std::is_same int main () { using LX = atch::meta_list; LX::push (); LX::set<0, class Hello> (); LX::set<2, class World> (); LX::pop (); LX::value<> x; // type_list static_assert ( std::is_same< atch::type_list, LX::value<> >::value, "try again" ); }