
"Steven Watanabe"
AMDG
On 04/09/2011 04:36 PM, Peter Foelsche wrote:
It is a major annoyance that these arrithmetic operations return a different type than the input! I mean I input boost::mpl::long_ and I get a boost::mpl::integral_c
It isn't really different. mpl::long_ is just a shortcut for integral_c.
typename boost::mpl::at< typename boost::mpl::insert< boost::mpl::map<>, boost::mpl::pair< typename boost::mpl::plus< boost::mpl::long_<0>, boost::mpl::long_<1> >::type, boost::mpl::long_<0> >::type, boost::mpl::long_<1>
::type
I think this gives void_. In words (in case of I did something wrong): Insert a result from add into a map and then try to find it via at. It cannot be found anymore, as it is not a long_ but an integral_c now. Peter