|
Boost Users : |
Subject: Re: [Boost-users] Boost.Hash and enums
From: Daniel James (dnljms_at_[hidden])
Date: 2012-09-07 15:53:32
On 24 August 2012 16:33, Filip KonviÄka <filip.konvicka_at_[hidden]> wrote:
>
>>>> ...
>>>
>>> I think that should work. I'll see if can get a portable version in
>>> trunk as soon as possible.
>>
>>
>> I only tested my code with MSVC 2010. I hope it works with g++ as well.
>
>
> Sure enough, it does not. g++ is using argument-dependent lookup; my
> application code encloses enum definitions in dedicated namespaces and some
> enums are defined in classes. In all such cases, my code understandably
> does not work. Do you have any idea how to overcome this?
Sorry, I missed this. You need to declare your hash function before
including the header. There's enum support in the release branch now,
so it'll be fixed in the next release.
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