Boost logo

Boost Users :

Subject: Re: [Boost-users] Overloading boost::hash_value GCC
From: Daniel James (dnljms_at_[hidden])
Date: 2011-07-01 18:05:27

On 1 July 2011 22:48, André Santee <andre.santee_at_[hidden]> wrote:

> I'm having a hard time trying to compile my code here. What I'm doing is to
> overload the boost::hash_value function to use boost::unordered_map with a
> custom Vector2 class.

You need to define it in the same namespace as Vector, so that it'll be
found by ADL.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at