boost::openmethod::policies::static_rtti :: Boost.OpenMethod

# boost::openmethod::policies::static_rtti

Minimal implementation of the `rtti` policy.

## Synopsis

Declared in `<boost/openmethod/policies/static_rtti.hpp>`

    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]

## Base Classes

Name | Description
--- | ---
`rtti` | Policy for manipulating type information.

## Types

Name | Description
`fn` | A RttiFn metafunction.

Created with MrDocs