Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
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