--- boost-1.47.0/boost/range/adaptor/argument_fwd.hpp.orig 2011-10-12 11:23:18.269118051 +0900 +++ boost-1.47.0/boost/range/adaptor/argument_fwd.hpp 2011-10-12 10:58:01.836715875 +0900 @@ -12,6 +12,7 @@ #define BOOST_RANGE_ADAPTOR_ARGUMENT_FWD_HPP #include +#include #ifdef BOOST_MSVC #pragma warning(push) @@ -46,6 +47,20 @@ { return Holder(t); } + + template< class R, class T > + Holder< boost::const_mem_fun_ref_t > + operator()( R (T::*p)() const ) const + { + return Holder< boost::const_mem_fun_ref_t >(boost::mem_fun_ref(p)); + } + + template< class R, class T > + Holder< boost::mem_fun_ref_t > + operator()( R (T::*p)() ) const + { + return Holder< boost::mem_fun_ref_t >(boost::mem_fun_ref(p)); + } }; template< template class Holder >