Files
contract/example/features/override_trait.cpp
2015-06-27 08:03:34 -07:00

20 lines
377 B
C++

//[override_trait
class a
#define BASES public b
: BASES
{
public:
typedef BOOST_CONTRACT_BASE_TYPES(BASES) base_types;
#undef BASES
void _f(boost::contract::virtual_* v = 0) /* override */ {
auto c = boost::contract::public_function<override_f>(v, &a::_f, this);
/* ... */
}
BOOST_CONTRACT_OVERRIDE_TRAIT(override_f, _f)
};
//]