Boost logo

Boost Users :

Subject: Re: [Boost-users] [ICL] Can't use an enum as map value
From: Lars Viklund (zao_at_[hidden])
Date: 2014-03-19 09:04:26


On Wed, Mar 19, 2014 at 01:41:03PM +0100, Oodini wrote:
> Thanks for your prompt reply !
>
> The problem is I DO KNOW there will be never overlapping.

That's run-time knowledge that the compiler can't infer or use.
Investigate whether it's possible to avoid this behaviour via some
policy or if it might be acceptable to have a bogus operator+= defined
for your type somewhere where it can be found.

If none of those are acceptable, you could always consider patching the
library to provide such a policy or trait.

-- 
Lars Viklund | zao_at_[hidden]

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