![]() |
Home | Libraries | People | FAQ | More |
BOOST_CONTRACT_BASE_TYPES — Used to program a typedef listing the bases of a derived class.
// In header: <boost/contract/base_types.hpp>
BOOST_CONTRACT_BASE_TYPES(...)In order to support subcontracting, a derived class that specifies contracts for one or more overriding public function must declare a typedef named base_types (or BOOST_CONTRACT_BASES_TYPEDEF) using this macro.
class u : #define BASES public b, protected virtual w1, private w2 BASES { friend class boost::contract:access; typedef BOOST_CONTRACT_BASES(BASES) base_types; #undef BASES ... };
This typedef must be public if boost::contract::access is not used.
See Also:
Parameters: |
|