Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_TYPE_INDEX_IMPLEMENT_RUNTIME_CAST

BOOST_TYPE_INDEX_IMPLEMENT_RUNTIME_CAST — Macro used to make a class compatible with boost::typeindex::runtime_cast without including support for boost::typeindex::type_id_runtime.

Synopsis

// In header: <boost/type_index/runtime_cast/register_runtime_class.hpp>

BOOST_TYPE_INDEX_IMPLEMENT_RUNTIME_CAST(base_class_seq)

Description

BOOST_TYPE_INDEX_IMPLEMENT_RUNTIME_CAST is provided as an alternative to BOOST_TYPE_INDEX_REGISTER_RUNTIME_CLASS in the event that support for boost::typeindex::type_id_runtime is undesirable.

Example:

Parameters:

base_class_seq

A Boost.Preprocessor sequence of the current class' direct bases, or BOOST_TYPE_INDEX_NO_BASE_CLASS if this class has no direct base classes.


PrevUpHomeNext