libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
sir::boost_format_adapter< TPolicy > Class Template Reference

Adapter for boost::format (when available). More...

Inheritance diagram for sir::boost_format_adapter< TPolicy >:
[legend]

Detailed Description

template<DerivedFromPolicy TPolicy>
class sir::boost_format_adapter< TPolicy >

Adapter for boost::format (when available).

Enabled when boost::format is available on this platform and SIR_NO_BOOST_FORMAT is not defined.

Allows for the use of boost::format in place of (or in addition to) C-style variadic argument methods.

Example:

log.info_bf(boost::format("This is from %1%!" % "boost::format"));
The primary C++ interface to libsir.
Definition sir.hh:811
static bool throw_on_policy(bool expr) noexcept(false)
Handles a potential error; if an error is present and the policy in place requires throwing an except...
Definition sir.hh:289
See also
boost_logger
Template Parameters
TPolicyA derived class of policy which controls the behavior of logger and by association, its adapters.

The documentation for this class was generated from the following file: