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

Adapter for {fmt} (when available). More...

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

Detailed Description

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

Adapter for {fmt} (when available).

Enabled when {fmt} is available on this platform and SIR_NO_FMT_FORMAT is not defined.

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

Example:

log.info_fmt("This is from {}}!", "fmt::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
fmt_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: