7 Sep
2012
7 Sep
'12
7:53 p.m.
On 24 August 2012 16:33, Filip Konvička
...
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.