2005-01-27から1日間の記事一覧
#include <boost/mpl/int.hpp> #include <boost/mpl/plus.hpp> #include <boost/mpl/apply.hpp> #include <boost/mpl/assert.hpp> using namespace boost::mpl; // STEP0 BOOST_MPL_ASSERT_RELATION( ( apply< plus<_1,_2>, int_<6>, int_<7> >::type::value), ==, 13 ); // STEP0': synonym // 実際はint_<0>ではなくintegral_c</_1,_2></boost/mpl/assert.hpp></boost/mpl/apply.hpp></boost/mpl/plus.hpp></boost/mpl/int.hpp>