jirzynek / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

clang 2.8 reports small error in src/hashtable_test.cc #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to compile sparsehash-1.9 with clang++ from clang 2.8, it gives the 
following error:
src/hashtable_test.cc:1728:24: error: you need to include <typeinfo> before
      using the 'typeid' operator
  cout << "sizeof(" << typeid(TypeParam).name() << "): "

Which is of course seems easily fixed by a #include <typeinfo> in 
hashtable_test.cc.

After this it compiles fine (with a couple of unused parameter warnings) and 
all tests pass with clang 2.8.

Original issue reported on code.google.com by nextdayf...@gmail.com on 13 Oct 2010 at 2:24

GoogleCodeExporter commented 9 years ago
Thanks!  I'll put that in the next release.

Original comment by csilv...@gmail.com on 13 Oct 2010 at 2:34

GoogleCodeExporter commented 9 years ago
This should be fixed in sparsehash 1.10, just released.

Original comment by csilv...@gmail.com on 22 Jan 2011 at 3:48