From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- .../meta/explicit-failures-markup.xml | 96 ++++++++++++++++++++++ src/boost/libs/container_hash/meta/libraries.json | 20 +++++ 2 files changed, 116 insertions(+) create mode 100644 src/boost/libs/container_hash/meta/explicit-failures-markup.xml create mode 100644 src/boost/libs/container_hash/meta/libraries.json (limited to 'src/boost/libs/container_hash/meta') diff --git a/src/boost/libs/container_hash/meta/explicit-failures-markup.xml b/src/boost/libs/container_hash/meta/explicit-failures-markup.xml new file mode 100644 index 00000000..bb205ccc --- /dev/null +++ b/src/boost/libs/container_hash/meta/explicit-failures-markup.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + hash_value is not overloaded for arrays for older versions + of Visual C++. There is a work around so that + boost::hash<T[N]>, boost::hash_combine and boost::hash_range + work. + + + + + + + + + + + + + + + + + On these compilers the wrong overload of hash_value is called + when the argument is a hash function pointer. So calling + hash_value doesn't work but boost::hash does work (and it's + recommended that user never call hash_value directly so this + shouldn't be a problem). + + + + + + + + + This platform has poor support for long double so + the hash function perform poorly for values out of the range + of double or if they differ at a greater precision + that double is capable of representing. + + + + + + + + + + These examples only work on compilers with support for ADL. + It is possible to work around this, but I wanted to keep the + example code as clean as possible. + + + + + + + + It appears that Borland doesn't find friend functions defined + in a class by ADL. This is easily fixed but this example is + meant to show the typical way of customising boost::hash, not + the portable way. + + + + + + + + The test demonstrates a Borland bug - functions that aren't + in a namespace don't appear to be found by ADL. + + + + + + + + Debug containers aren't supported on Apple's version of gcc 4.2. + + + + diff --git a/src/boost/libs/container_hash/meta/libraries.json b/src/boost/libs/container_hash/meta/libraries.json new file mode 100644 index 00000000..b1b075b3 --- /dev/null +++ b/src/boost/libs/container_hash/meta/libraries.json @@ -0,0 +1,20 @@ +[ + { + "key": "functional/hash", + "boost-version": "1.33.0", + "name": "Container Hash", + "authors": [ + "Daniel James" + ], + "maintainers": [ + "Daniel James " + ], + "description": "An STL-compatible hash function object that can be extended to hash user defined types.", + "std": [ + "tr1" + ], + "category": [ + "Function-objects" + ] + } +] -- cgit v1.2.3