|
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
Hello,
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 ?
Thanks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net