1[#getting_started_2] 2 3 #include <boost/mpl/plus.hpp> 4 #include <boost/mpl/at.hpp> 5 template <class Vector> struct eval_plus : boost::mpl::plus< typename boost::mpl::at_c<Vector, 0>::type, typename boost::mpl::at_c<Vector, 2>::type > {}; 6 7
1[#getting_started_2] 2 3 #include <boost/mpl/plus.hpp> 4 #include <boost/mpl/at.hpp> 5 template <class Vector> struct eval_plus : boost::mpl::plus< typename boost::mpl::at_c<Vector, 0>::type, typename boost::mpl::at_c<Vector, 2>::type > {}; 6 7