Re: [Boost-users] boost::mpl::map and inserting the same pair twice
I added the ::type to every insert.
It still does not compile -- not using g++ nor using visual C++.
Error message is not helpful.
Also is there some operation to insert all elements of one map into another one?
This would be extremely helpful.
#include
CMap2;
typedef boost::mpl::insert< CMap2, boost::mpl::pair< boost::mpl::int_<2>, boost::mpl::int_<3> >::type
CMap3;
typedef boost::mpl::insert< CMap3, boost::mpl::pair< boost::mpl::int_<2>, boost::mpl::int_<3> >::type
CMap31;
int main(int, char**)
{ CMap2 s;
CMap3 s1;
CMap31 s2;
//BOOST_MPL_ASSERT((boost::is_same
AMDG peter_foelsche@agilent.com wrote:
typedef boost::mpl::insert<
CMap3,
boost::mpl::pair<
boost::mpl::int_<2>,
boost::mpl::int_<3>
>::type
CMap31;
The ::type goes on boost::mpl::insert<...>::type, not boost::mpl::pair<...>::type In Christ, Steven Watanabe
participants (2)
-
peter_foelsche@agilent.com
-
Steven Watanabe