mirror of
https://github.com/boostorg/openmethod.git
synced 2026-01-19 04:22:12 +00:00
link into reference
This commit is contained in:
@@ -14,10 +14,10 @@ Defined in `<https://www.github.com/boostorg/openmethod/blob/develop/include/
|
||||
|
||||
The name of the default registry.
|
||||
|
||||
`BOOST_OPENMETHOD_DEFAULT_REGISTRY` is the default value for the `REGISTRY` template
|
||||
parameter of `method`, `use_classes`, and other constructs defined in
|
||||
`BOOST_OPENMETHOD_DEFAULT_REGISTRY` is the default value for the `Registry`
|
||||
template parameter of `method`, `use_classes`, and other constructs defined in
|
||||
`<boost/openmethod/core.hpp>`. If it is not defined,
|
||||
`::boost::openmethod::REGISTRY::default_registry` is used.
|
||||
link:reference/boost/openmethod/default_registry.html[`default_registry`] is used.
|
||||
|
||||
`BOOST_OPENMETHOD_DEFAULT_REGISTRY` can be defined by a program to change the
|
||||
default REGISTRY globally. Once `<boost/openmethod/core.hpp>` has been included,
|
||||
|
||||
@@ -23,9 +23,17 @@ struct release_registry
|
||||
|
||||
//! Registry with runtime checks and trace enabled
|
||||
//!
|
||||
//! `debug_registry` uses the same policies as @ref release_registry, with the
|
||||
//! additional policies of @ref policies::runtime_checks and @ref
|
||||
//! policies::trace.
|
||||
//!
|
||||
//! This is the default value of
|
||||
//! [BOOST_OPENMETHOD_DEFAULT_REGISTRY](../BOOST_OPENMETHOD_DEFAULT_REGISTRY.html) when NDEBUG
|
||||
//! is not defined.
|
||||
//! [BOOST_OPENMETHOD_DEFAULT_REGISTRY](../BOOST_OPENMETHOD_DEFAULT_REGISTRY.html)
|
||||
//! when NDEBUG is not defined.
|
||||
//!
|
||||
//! `debug_registry` is derived from `release_registry::with<...>`, instead of
|
||||
//! being aliased, to avoid creating long symbol names wherever it is used. Its
|
||||
//! state is entirely distinct from `release_registry`\'s.
|
||||
struct debug_registry
|
||||
: release_registry::with<policies::runtime_checks, policies::trace> {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user