mirror of
https://github.com/boostorg/contract.git
synced 2026-01-27 06:42:20 +00:00
20 lines
377 B
C++
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)
|
|
};
|
|
//]
|
|
|
|
|