Boost logo

Boost Users :

Subject: [Boost-users] [ICL] Can't use an enum as map value
From: Oodini (svdbg____at_[hidden])
Date: 2014-03-19 08:11:05


I declared an interval_map :

interval_map<uint16_t, SomeEnumType> myMap;

Later, I do :

SomeEnumType enumValue = SOME_ENUM_VALUE;
myMap.add(std::make_pair(disxrete_interval<uint16_t>(10,17), SOME_ENUM_VALUE);

But that doesn't compile.

It seems that ICL wants the += operator must eb defined for value type (why ???).

What can I do ?


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