From 31db13e463c9c8e5c862e53a800b7bd21c267265 Mon Sep 17 00:00:00 2001 From: g0dil <g0dil@wiback.org> Date: Fri, 24 Jul 2009 08:07:45 +0000 Subject: [PATCH] boost: Fix unordered_set concept checking bug --- boost/bimap/unordered_set_of.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/boost/bimap/unordered_set_of.hpp b/boost/bimap/unordered_set_of.hpp index e39c2314b..2f169e720 100644 --- a/boost/bimap/unordered_set_of.hpp +++ b/boost/bimap/unordered_set_of.hpp @@ -139,9 +139,14 @@ struct unordered_set_of : public ::boost::bimaps::detail::set_type_of_tag BOOST_CLASS_REQUIRE ( value_type, boost, AssignableConcept ); - BOOST_CLASS_REQUIRE3( hasher, std::size_t, value_type, - boost, UnaryFunctionConcept ); - + typedef void (boost::UnaryFunctionConcept <hasher,std::size_t,value_type>::* + funchasherstdsize_tvalue_typeconcept)(); + template <funchasherstdsize_tvalue_typeconcept Tp1_> + struct concept_checking_hasherstdsize_tvalue_typeconcept { }; + typedef concept_checking_hasherstdsize_tvalue_typeconcept< + BOOST_FPTR boost::UnaryFunctionConcept<hasher,std::size_t,value_type>::constraints> + concept_checking_typedef_hasherstdsize_tvalue_typeconcept; + BOOST_CLASS_REQUIRE4( key_equal, bool, value_type, value_type, boost, BinaryFunctionConcept ); -- GitLab