Files
openmethod/doc/deferred_static_rtti.adoc
Jean-Louis Leroy 5e0fa8ee4b inception
2025-03-08 15:31:25 -05:00

26 lines
695 B
Plaintext

## deferred_static_rtti
### Synopsis
Defined in <boost/openmethod/policies/basic_policy.hpp>.
```c++
namespace boost::openmethod::policies {
struct deferred_static_rtti : virtual rtti {};
}
```
### Description
`deferred_static_rtti` is a facet that defers collection of static type ids.
Some custom RTTI systems rely on static constructors to assign type ids.
OpenMethod itself relies on static constructors to register classes, methods and
overriders, calling the `static_type` function from the `rtti` facet in the
process. This can result in collecting the type ids _before_ they have been
initialized. Adding this facet to a policy moves the collection of type ids to
`initialize`.