2013-03-12から1日間の記事一覧

C++ Template Metaprogramming の Exercise 4-2

C++

Variadic Templates Verで書いた。 struct error {}; template< bool B, typename ... Args > struct logical_and_; template< typename head, typename ... tail > struct logical_and_<false, head, tail...> { typedef mpl::false_ type; }; template< typename head, typename </false,>…