boost::openmethod::default_registry

Default registry.

Description

default_registry is a predefined registry, and the default value of BOOST_OPENMETHOD_DEFAULT_REGISTRY. It contains the following policies:

  • policies::std_rtti: Use standard RTTI.

  • policies::fast_perfect_hash: Use a fast perfect hash function to map type ids to indices.

  • policies::vptr_vector: Store v‐table pointers in a `std::vector`.

  • policies::default_error_handler: Write short diagnostic messages.

  • policies::stderr_output: Write messages to `stderr`.

If BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS is defined, default_registry also includes the runtime_checks policy.

Use BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS with caution, as inconsistent use of the macro can cause ODR violations. If defined, it must be in all the translation units in the program that use default_registry, including those pulled from libraries.

Created with MrDocs