Closed GoogleCodeExporter closed 9 years ago
hash<> is not part of the STL standard, and is defined in a different namespace
in
different STL implementations. You'll need to figure out the right namespace
for
your implementation.
In the next release of sparsehash, I will try to clarify that the example may
not
work out of the box on all distributions, due to namespace issues.
Original comment by csilv...@gmail.com
on 10 Aug 2008 at 6:37
For ubuntu linux just add
using __gnu_cxx::hash;
to the list of namespaces
Original comment by fabrizio...@gmail.com
on 17 Aug 2008 at 11:50
Thanks, I'll mention that in the next version of the documentation
Original comment by csilv...@gmail.com
on 19 Aug 2008 at 1:32
Fixed in sparsehash 1.2, just released.
Original comment by csilv...@gmail.com
on 19 Sep 2008 at 7:23
Original issue reported on code.google.com by
johansen...@gmail.com
on 9 Aug 2008 at 11:11