BOOST_DEFINE_MIXIN — defines a mixin
// In header: <boost/mixin/mixin.hpp>
BOOST_DEFINE_MIXIN(mixin_type, mixin_features)
The macro defines a mixin in the domain. Call this once per mixin in a compilation unit (.cpp file). A good idea is, if possible, to place it in the compilation unit of the mixin class itself.
To work properly, the macro needs to see a forward declaration of the mixin (by BOOST_DECLARE_MIXIN or BOOST_DECLARE_EXPORED_MIXIN).
Mixin features: The features argument is an ampersand (&) separated list of the features - messages, allocators, and others - that the mixin will support. If the features have a special suffix (as messages do), it applies here.
If the mixin has no features, then boost::mixin::none
should be set as the last argument
Example:
BOOST_DEFINE_MIXIN(mymixin, foo_msg & priority(1, bar_msg) & allocator<myalloc>); BOOST_DEFINE_MIXIN(simple_mixin, none);