$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.