mirror of
https://github.com/boostorg/phoenix.git
synced 2026-02-18 02:12:09 +00:00
bind/bind_member_variable.hpp New version runs all tests using boost::lazy_disable_if to resolve overloading problems.
This commit is contained in:
@@ -17,12 +17,12 @@ namespace boost { namespace phoenix
|
||||
{
|
||||
template <typename RT, typename ClassT, typename ClassA>
|
||||
inline
|
||||
typename boost::disable_if<
|
||||
boost::is_member_function_pointer<RT ClassT::*>,
|
||||
typename boost::lazy_disable_if<
|
||||
boost::is_member_function_pointer<RT (ClassT::*)>,
|
||||
typename detail::expression::function_eval<
|
||||
detail::member_variable<RT, RT ClassT::*>
|
||||
, ClassA >::type
|
||||
>::type const
|
||||
, ClassA >//::type
|
||||
>::type const
|
||||
bind(RT ClassT::*mp, ClassA const& obj)
|
||||
{
|
||||
typedef detail::member_variable<RT, RT ClassT::*> mp_type;
|
||||
@@ -33,11 +33,11 @@ namespace boost { namespace phoenix
|
||||
|
||||
template <typename RT, typename ClassT>
|
||||
inline
|
||||
typename boost::disable_if<
|
||||
boost::is_member_function_pointer<RT ClassT::*>,
|
||||
typename boost::lazy_disable_if<
|
||||
boost::is_member_function_pointer<RT (ClassT::*)>,
|
||||
typename detail::expression::function_eval<
|
||||
detail::member_variable<RT, RT ClassT::*>
|
||||
, ClassT >::type
|
||||
, ClassT >//::type
|
||||
>::type const
|
||||
bind(RT ClassT::*mp, ClassT& obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user