Boost logo

Boost Users :

Subject: [Boost-users] boost::mpl::map and inserting the same pair twice
From: peter_foelsche_at_[hidden]
Date: 2008-10-06 16:07:10

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 <boost/mpl/map.hpp>
#include <boost/mpl/insert.hpp>
#include <boost/type_traits/is_same.hpp>

typedef boost::mpl::map<
> CMyMap;

typedef boost::mpl::insert<
> CNewMap;

int main(int, char**)
{ CMyMap s;
        CNewMap s1;
> ));
        return 0;

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at