boost::openmethod::trace

Enable initialize tracing.

Synopsis

struct trace;

Member Functions

Name

trace [constructor]

Static Member Functions

Name

Description

from_env

Returns a trace object with on set to true if the environment variable BOOST_OPENMETHOD_TRACE is set to the string "1", and false otherwise.

Data Members

Name

Description

on

Enable trace if true.

Description

If trace is passed to initialize, tracing code is added to various parts of the initialization process (dispatch table construction, hash factors search, etc). The tracing code is executed only if trace::on is set to true.

trace requires the registry being initialized to have an output policy.

The content of the trace is neither specified, nor stable across versions. It is comprehensive, and useful for troubleshooting missing class registrations, missing or ambiguous overriders, etc.

Created with MrDocs