boost: Fix unordered_set concept checking bug
g0dil [Fri, 24 Jul 2009 08:07:45 +0000 (08:07 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1279 270642c3-0616-0410-b53a-bc976706d245

boost/bimap/unordered_set_of.hpp

index e39c231..2f169e7 100644 (file)
@@ -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 );