Split the hash pointer tests into tests for normal pointers and function pointers, as function pointers fail on old versions of Visual C++, and add a note about this to the hash documentaion.

[SVN r28389]
This commit is contained in:
Daniel James
2005-04-21 22:18:38 +00:00
parent 9a96585cb9
commit 572ec155db
5 changed files with 58 additions and 32 deletions
+2
View File
@@ -336,6 +336,8 @@ On Visual C++ versions 6.5 and 7.0, `hash_value` isn't overloaded for built in
arrays. __boost_hash, __hash_combine and __hash_range all use a workaround to
support built in arrays so this shouldn't be a problem in most cases.
On Visual C++ versions 6.5 and 7.0, function pointers aren't currently supported.
`boost::hash_value(long double)` on GCC on Solaris appears to treat
`long double`s as doubles - so the hash function doesn't take into account the
full range of values.