
6 Oct
2008
6 Oct
'08
8:07 p.m.
I'm inserting the same key-value pair twice.
And I'm getting a different type.
The following code does not compile due to the assertion firing:
#include
CMyMap;
typedef boost::mpl::insert< CMyMap, boost::mpl::pair< boost::mpl::int_<2>, boost::mpl::int_<2> >
CNewMap;
int main(int, char**) { CMyMap s; CNewMap s1; BOOST_MPL_ASSERT((boost::is_same< boost::mpl::insert< CNewMap, boost::mpl::pair< boost::mpl::int_<2>, boost::mpl::int_<2> > >, CNewMap > )); return 0; }