
16 Oct
2009
16 Oct
'09
2:52 p.m.
AMDG alfC wrote:
The reason I returned to my post is that today I found boost/mpl/ plus.hpp and boost/mpl/multiplies.hpp which seem to answer the first part of my question (although not the syntactic sugar part).
mpl::plus and mpl::multiplies are not function objects. You can't use them with int, for example. They are metafunctions that mainly work with MPL Integral Constant Wrappers: BOOST_MPL_ASSERT((boost::mpl::equal_to< boost::mpl::plus<boost::mpl::int_<1>, boost::mpl::int_<2> >, boost::mpl::int_<3> >)); In Christ, Steven Watanabe