boost::openmethod::policies::static_rtti
Minimal implementation of the rtti policy.
Synopsis
struct static_rtti
: rtti
Description
static_rtti implements only the static parts of the rtti policy. It uses the addresses of a per‐class static variables as a type_id. It categorizes all types as non‐polymorphic. As a consequence, the virtual_ptr constructors that take a pointer or a reference to a polymorphic object are disabled. virtual_ptr must be constructed using final_virtual_ptr (or its equivalents for smart pointers).
Example
TODO include::example$static_rtti.cpp[tag=all]
Created with MrDocs