Boost C++ Libraries

PrevUpHomeNext

Function template current_scope

boost::log::current_scope

Synopsis

// In header: <boost/log/support/exception.hpp>


template<typename CharT> 
  error_info< current_scope_info_tag, attributes::basic_named_scope_list< CharT >> 
  current_scope();

Description

The function returns an error information object that contains current stack of scopes. This information can then be attached to an exception and extracted at the catch site. The extracted scope list won't be affected by any scope changes that may happen during the exception propagation.

[Note] Note

See the basic_named_scope attribute documentation on how to maintain scope list.


PrevUpHomeNext