BOOST_OPENMETHOD_DEFAULT_REGISTRY
Description
The name of the default policy.
BOOST_OPENMETHOD_DEFAULT_REGISTRY
is the default value for the Policy
template
parameter of method
, use_classes
, and other constructs defined in
<boost/openmethod/core.hpp>
. If it is not defined,
::boost::openmethod::policy::default_registry
is used.
BOOST_OPENMETHOD_DEFAULT_REGISTRY
can be defined by a program to change the
default policy globally. Once <boost/openmethod/core.hpp>
has been included,
redefining the symbol has no effect. To override the default policy, proceed as
follows:
-
Include headers under
boost/openmethod/policies/
as needed. -
Create a policy class, and set
BOOST_OPENMETHOD_DEFAULT_REGISTRY
. -
Include
<boost/openmethod/core.hpp>
.