Daniel James
767673645e
Support for char16_t, char32_t, u16string, u32string
2017-05-31 22:19:54 +01:00
Daniel James
33eb0c50dc
Initial support for char32_t
2017-05-31 10:17:34 +01:00
Daniel James
f230731aa5
Only support std::wstring when wchar_t is available
...
This hopefuly fixes #8552 .
https://svn.boost.org/trac/boost/ticket/8552
2016-11-18 15:13:46 +00:00
Daniel James
281e11b292
Support for removed function objects in C++17
...
std::unary_function and std::binary_function are removed in C++17, and
Visual C++ is the first compiler to do this (when the appropriate macro
is defined). I'm not sure what the long term solution should be, but
hopefully this will work for now.
2016-11-01 16:31:21 +00:00
Daniel James
9f24e2eaf0
Try to avoid more warnings
2016-10-11 10:07:11 +01:00
Daniel James
826f7013a1
Another signed conversion warning
2016-10-05 09:49:27 +01:00
Daniel James
2ee1e5c25a
Merge branch 'develop' (early part)
2016-06-26 20:32:22 +01:00
Marshall Clow
7977f83a08
Fix a typo in a comment; fixes https://svn.boost.org/trac/boost/ticket/12270
2016-06-14 17:24:30 -07:00
Daniel
45eeb170f2
Fix the binary 32 and 64 bit hash functions.
2016-02-28 09:14:37 +00:00
Billy Donahue
2a0d1be60b
doc: BOOST_HASH_SPECIALIZE_REF passes by const ref
2015-09-12 17:12:02 -04:00
Daniel James
64e85476f1
Another try at an improved hash function.
...
This is based on the mix function from MurmurHash. It's not the full
algorithm as it's always seeded with 0, and doesn't do a final mix. This
should be okay as Boost.Hash doesn't claim to avalanche the bits.
2014-02-23 10:17:08 +00:00
Daniel James
c965760ea1
Improved(?) hash function.
...
Given the existing interface, it's quite tricky to use most popular hash
functions without a change, so I'm using a modified version of FNV1a.
The current function always starts with a seed of 0 (and will in user
functions), so I'm adding the offset each time instead. I'm not sure if
that will work as well.
2014-01-28 23:33:25 +00:00
Stephen Kelly
e961a8a2f8
Functional: Remove obsolete MSVC version checks.
...
[SVN r86051]
2013-12-10 23:41:55 +00:00
Daniel James
b5e6678553
Revert changes to develop branch.
...
Simplest way to merge to master.
2013-12-10 23:18:52 +00:00
Daniel James
3f4d17c5e7
Only use Visual C++ pragma for appropriate versions.
...
[SVN r86671]
2013-11-12 22:09:42 +00:00
Stephen Kelly
dd73970b1e
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
Process #ifndef...#else...#endif blocks.
[SVN r86245]
2013-10-11 23:17:48 +00:00
Stephen Kelly
3ac96347ba
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
Process #ifdef...#endif blocks.
[SVN r86243]
2013-10-11 23:13:10 +00:00
Stephen Kelly
6d25b771bd
Functional: Remove obsolete GCC version checks.
...
[SVN r86112]
2013-10-01 08:46:45 +00:00
Stephen Kelly
e887c416a6
Functional: Remove obsolete MSVC version checks.
...
[SVN r86051]
2013-09-30 11:22:29 +00:00
Daniel James
b1790e463e
Fix Visual C++ warning in hash. Refs #8568 .
...
I changed this a little from the patch on #8568 . I moved the pragmas to the
start and end of the file because I don't like to little the body of the code
with them (this does mean I've disabled a potentially useful warning, but the
code is pretty stable nowadays).
I also removed the version checks, as the warning should be present in later
versions.
[SVN r85248]
2013-08-08 22:01:18 +00:00
Daniel James
75ffe88f82
Hash: Fix int128 with BOOST_HASH_NO_EXTENSIONS.
...
I don't think int128 should count as an extension.
BOOST_HASH_NO_EXTENSIONS is actually a bit of a pain, and I don't think it's
that useful. Maybe I should deprecate it.
[SVN r81870]
2012-12-12 09:44:32 +00:00
Daniel James
f572834b59
Hash: Fix int128 support.
...
[SVN r81854]
2012-12-11 15:48:19 +00:00
Daniel James
5fcfd1ae38
Hash: Support boost::int128_type.
...
[SVN r81816]
2012-12-10 10:40:44 +00:00
Daniel James
8a0c516b22
Hash: Detab.
...
[SVN r81787]
2012-12-08 09:19:24 +00:00
Daniel James
b286131642
Hash: Quick attempt at supporting enums.
...
Thanks to Filip Konvička.
[SVN r80139]
2012-08-22 11:40:27 +00:00
Marshall Clow
e723967c7e
Switch from deprecated macros to new shiny ones; no functionality change
...
[SVN r79392]
2012-07-09 20:12:04 +00:00
Daniel James
f54e6e8af1
Hash: Use SFINAE to avoid implicit casts to numbers.
...
[SVN r78391]
2012-05-08 22:24:46 +00:00
Daniel James
048d92f36a
Fix copy and paste typo. Refs #4756 .
...
[SVN r68182]
2011-01-16 11:06:00 +00:00
Daniel James
d631763584
Oops, make new hash_value overload inline.
...
[SVN r68147]
2011-01-14 03:36:39 +00:00
Daniel James
30618f1dff
Support typeindex in hash. Refs #4756 .
...
[SVN r68145]
2011-01-14 03:13:39 +00:00
Daniel James
948aee8aab
Fix tabs and files without copyright.
...
[SVN r67612]
2011-01-03 12:43:34 +00:00
Daniel James
0ae94ec276
Fix hashing pointers on 64-bit OpenVMS.
...
Patch by Artyom. Refs #4477
[SVN r64397]
2010-07-27 19:18:53 +00:00
Daniel James
ef1bfd0174
Only include static_assert when necessary.
...
[SVN r64009]
2010-07-14 08:28:04 +00:00
Daniel James
3bb0cd29e4
Actually, make the change to hash opt-in, rather than opt-out. It's a bit late to introduce a breaking change.
...
[SVN r64007]
2010-07-14 08:17:48 +00:00
Daniel James
892623b401
Release notes for hash.
...
[SVN r63810]
2010-07-10 13:47:47 +00:00
Daniel James
67c3951e3f
Try preventing static casts when calling hash_value.
...
[SVN r63716]
2010-07-06 23:32:37 +00:00
Daniel James
09dee31f61
Stop using the deprecated BOOST_HAS_ macros in unordered and hash.
...
[SVN r59697]
2010-02-15 23:01:06 +00:00
Daniel James
a3cabbe601
Formatting changes, mostly to fit within 80 characters.
...
Also, some C casts converted to static_cast.
[SVN r58692]
2010-01-04 22:49:39 +00:00
Daniel James
ec3632c322
Try to suppress some more Visual C++ warnings.
...
[SVN r57976]
2009-11-27 19:43:26 +00:00
Daniel James
ed8c404ca6
Stricter warnings for unordered and hash.
...
There are still warnings in hash_complex_test.
[SVN r57537]
2009-11-10 08:15:55 +00:00
Jürgen Hunold
f2dd570ee9
Fix gcc -pedantic warning: remove extra ";".
...
[SVN r54146]
2009-06-21 14:38:19 +00:00
Daniel James
e661dbe988
Move the support for hashing containers into the extension header, and improve the standard tests.
...
[SVN r54144]
2009-06-21 09:42:40 +00:00
Daniel James
0d9f68d607
Move BOOST_HASH_CHAR_TRAITS from container_fwd into the hash headers, and undefine it.
...
[SVN r54143]
2009-06-21 09:42:20 +00:00
Daniel James
ebf01f20ca
Move includes to the header which they're used in.
...
[SVN r54140]
2009-06-21 09:41:30 +00:00
Daniel James
ac31c7e33c
A few more comments in boost::hash.
...
[SVN r54139]
2009-06-21 09:41:11 +00:00
Daniel James
5806a8935d
Move the hash limits workaround into its own file.
...
[SVN r53159]
2009-05-21 21:21:11 +00:00
Daniel James
1c44695b87
Update copyright dates in hash and unordered.
...
[SVN r51667]
2009-03-09 20:56:23 +00:00
Daniel James
ac3aa4971a
Move hash_fwd into the hash subdirectory.
...
I should have done this in the last release. But now all of the hash
implementation is in the hash subdirectory.
[SVN r51645]
2009-03-08 09:45:11 +00:00
Daniel James
d7fb437192
Rename parameter to avoid Visual C++ warning about clash with boost::array.
...
Fixes #2643
[SVN r50514]
2009-01-08 13:37:33 +00:00
Daniel James
82ffa7ff03
Move hash detail headers out of boost/functional/detail.
...
[SVN r49661]
2008-11-09 12:03:45 +00:00