Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
You've currently chosen the 1.91.0 version. If a newer release comes out, you will continue to view the 1.91.0 version, not the new latest release.
boost::log::fallback_to_throw
// In header: <boost/log/attributes/fallback_policy.hpp> struct fallback_to_throw { enum { guaranteed_result = true }; // public static functions template<typename FunT> static bool apply_default(FunT &); template<typename FunT> static bool apply_default(FunT const &); static void on_invalid_type(typeindex::type_index const &); static void on_missing_value(); };
The fallback_to_throw policy results in throwing an exception if the attribute value cannot be extracted.
fallback_to_throw public static functionstemplate<typename FunT> static bool apply_default(FunT &);
The method is called in order to apply a function object to the default value.
template<typename FunT> static bool apply_default(FunT const &);
The method is called in order to apply a function object to the default value.
static void on_invalid_type(typeindex::type_index const & t);
The method is called when value extraction failed because the attribute value has different type than requested.
static void on_missing_value();
The method is called when value extraction failed because the attribute value was not found.