Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_PROTO_EXTENDS_USING_ASSIGN

BOOST_PROTO_EXTENDS_USING_ASSIGN — For exposing in classes that inherit from proto::extends<> the overloaded assignment operators defined therein.

Synopsis

// In header: <boost/proto/extends.hpp>

BOOST_PROTO_EXTENDS_USING_ASSIGN(Derived)

Description

The standard usage of proto::extends<> is to inherit from it. However, the derived class automatically gets a compiler-generated assignment operator that will hide the ones defined in proto::extends<>. Use BOOST_PROTO_EXTENDS_USING_ASSIGN() in the derived class to unhide the assignment operators defined in proto::extends<>.

See proto::extends<> for an example that demonstrates usage of BOOST_PROTO_EXTENDS_USING_ASSIGN().


PrevUpHomeNext