
27 Feb
2010
27 Feb
'10
7:41 p.m.
AMDG André Santee wrote:
I solved my problem by doing this:
namespace boost { std::size_t hash_value(const GS_VECTOR2 &v2) { return ((std::size_t)v2.y*COLUMNS)+(std::size_t)v2.x; } };
Is it also ok?
You might get a better hash using boost::hash_value and boost::hash_combine In Christ, Steven Watanabe