2004-10-25から1日間の記事一覧

Strong Typedef & Typedef Template

#include <boost/preprocessor.hpp> #define CTOR_TEMPLATE_MAX_ARITY 10 #define DEFINE_CTOR_TEMPLATE(z, n, type_pair) \ template< BOOST_PP_ENUM_BINARY_PARAMS( BOOST_PP_INC(n), class BOOST_PP_INTERCEPT, A ) > \ BOOST_PP_TUPLE_ELEM(2, 1, type_pair) ( BOOST_PP_ENUM_BIN</boost/preprocessor.hpp>…