link into reference

This commit is contained in:
Jean-Louis Leroy
2025-09-16 20:26:02 -04:00
parent 1cf37e79b5
commit b905379285
2 changed files with 13 additions and 5 deletions

View File

@@ -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,

View File

@@ -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> {};