From: g0dil Date: Fri, 24 Jul 2009 08:07:45 +0000 (+0000) Subject: boost: Fix unordered_set concept checking bug X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=26dafbf86c16535110eeee3e6084111aa7b01e87;p=senf.git boost: Fix unordered_set concept checking bug git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1279 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/boost/bimap/unordered_set_of.hpp b/boost/bimap/unordered_set_of.hpp index e39c231..2f169e7 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 ::* + funchasherstdsize_tvalue_typeconcept)(); + template + struct concept_checking_hasherstdsize_tvalue_typeconcept { }; + typedef concept_checking_hasherstdsize_tvalue_typeconcept< + BOOST_FPTR boost::UnaryFunctionConcept::constraints> + concept_checking_typedef_hasherstdsize_tvalue_typeconcept; + BOOST_CLASS_REQUIRE4( key_equal, bool, value_type, value_type, boost, BinaryFunctionConcept );