Commit Graph

620 Commits

Author SHA1 Message Date
Daniel James
477004a45d Add the unit tests for hashing built in arrays.
[SVN r28079]
2005-04-10 12:38:58 +00:00
Daniel James
15d97d95e7 Implement hash functions for built-in arrays. Uses partial specialization
instead of function overloading - which disobeys the specification of
the extension (hash_combine is defined in terms of hash_value, but hash_value
doesn't deal with every case now).


[SVN r28078]
2005-04-10 12:36:24 +00:00
Daniel James
1d10a0f323 Use static assert instead of mpl assert in the hash tests, as it's more
portable.


[SVN r28068]
2005-04-09 09:30:27 +00:00
Daniel James
5e9f0e4c8e Use the named variants of the float functions for stlport on gcc-2.95.
[SVN r28067]
2005-04-09 09:27:20 +00:00
Daniel James
896e07cca7 Implement the compile time checks for hash functions as a function instead of a templated class. Hopefully it will work on more compilers.
[SVN r28053]
2005-04-07 22:14:02 +00:00
Daniel James
e24a93d8c6 Change tests so they can be used to test implementations of TR1 (maybe, eventually).
[SVN r28052]
2005-04-07 21:57:22 +00:00
Daniel James
50e6bad2fd Remove the Boost.Range overloads of hash_range.
[SVN r28051]
2005-04-07 21:08:58 +00:00
Daniel James
d252ee760d Removes hash_range_test.cpp's dependency on Boost.Range, which isn't currently working on Borland.
[SVN r28050]
2005-04-07 21:07:14 +00:00
Daniel James
2d91127422 Removes uses of BOOST_CHECK_EQUAL from the hash tests as they don't work on Borland.
Also force a failure on the float tests on borland as they are crashing horribly. Hopefully I should be able to fix this and remove this.

Also use pair's constructor in hash_map_test.hpp instead of make_pair so that the correct type is created.


[SVN r28049]
2005-04-07 20:53:20 +00:00
Daniel James
a65dc47fcb Change the hash float config for Rogue Wave so that it only applies to Borland,
as it seems to be wrong on SunPro.


[SVN r28029]
2005-04-06 22:52:25 +00:00
Daniel James
3d0a7a34dd Fix a bug in the float hash test - checking that infinity & -infinity hash to
the same value. The hash function is actually working better on the compilers
that were failing this test.


[SVN r28028]
2005-04-06 22:27:45 +00:00
Daniel James
d305aad29d Fix the 'DEPENDS all' line in the hash test Jamfile.
[SVN r27956]
2005-04-04 16:54:22 +00:00
Daniel James
52750a193d Rename test suite to functional/hash
[SVN r27920]
2005-04-02 00:03:17 +00:00
Daniel James
f3d016cf6d Stop using Boost.Assign in tests as it currently doesn't work on all the compilers I want to support. A pity, but I was already making very limited use of it because of older compilers.
[SVN r27917]
2005-04-01 22:50:26 +00:00
Daniel James
733ded8185 Stop using 'std::denorm_present' as on many compilers it isn't present itself.
[SVN r27916]
2005-04-01 22:49:19 +00:00
Daniel James
0aff6fe1a8 Fully specify custom's namespace for when the ADL workaround is used.
[SVN r27915]
2005-04-01 22:47:36 +00:00
Daniel James
27d6247dac Include config files before any other header to prevent Visual C++ 6 warnings.
Remove Boost.Range support when there are no const volatile specializations, as it currently requires them to compile. Hopefully this will be changed back in the future.


[SVN r27914]
2005-04-01 22:38:39 +00:00
Daniel James
8bfc36b94d Add the boost::hash unit tests.
[SVN r27903]
2005-04-01 16:58:09 +00:00
Daniel James
2b375867f5 Initial import of hash function headers - so that they can be used by
Boost.MultiIndex.


[SVN r27819]
2005-03-27 22:58:52 +00:00
Beman Dawes
44012a3bf8 This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.


[SVN r7621]
2000-07-07 16:04:40 +00:00