diff --git a/include/boost/phoenix/bind/detail/member_variable.hpp b/include/boost/phoenix/bind/detail/member_variable.hpp index 29e2ab6..163e33b 100644 --- a/include/boost/phoenix/bind/detail/member_variable.hpp +++ b/include/boost/phoenix/bind/detail/member_variable.hpp @@ -55,6 +55,12 @@ namespace boost { namespace phoenix { namespace detail { return (BOOST_PROTO_GET_POINTER(class_type, obj)->*mp); } + template + RT& operator()(Class* obj) const + { + return obj->*mp; + } + template RT const& operator()(Class const& obj) const { @@ -64,12 +70,6 @@ namespace boost { namespace phoenix { namespace detail { return (BOOST_PROTO_GET_POINTER(class_type, obj)->*mp); } - template - RT& operator()(Class* obj) const - { - return obj->*mp; - } - template RT const& operator()(Class const* obj) const {