mirror of
https://github.com/boostorg/phoenix.git
synced 2026-02-19 02:32:09 +00:00
bring develop and master in sync wrt include/boost/phoenix/bind/detail/member_variable.hpp
This commit is contained in:
@@ -55,6 +55,12 @@ namespace boost { namespace phoenix { namespace detail {
|
||||
return (BOOST_PROTO_GET_POINTER(class_type, obj)->*mp);
|
||||
}
|
||||
|
||||
template <typename Class>
|
||||
RT& operator()(Class* obj) const
|
||||
{
|
||||
return obj->*mp;
|
||||
}
|
||||
|
||||
template <typename Class>
|
||||
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 <typename Class>
|
||||
RT& operator()(Class* obj) const
|
||||
{
|
||||
return obj->*mp;
|
||||
}
|
||||
|
||||
template <typename Class>
|
||||
RT const& operator()(Class const* obj) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user