C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::format_string_with_location Struct Reference

Wraps a format string and its source location. More...

#include <format_string_with_location.hpp>

Public Member Functions

constexpr format_string_with_location (std::string_view str, const detail::source_location &loc=detail::source_location::current())
 
constexpr format_string_with_location (const char *str, const detail::source_location &loc=detail::source_location::current())
 

Public Attributes

std::string_view value
 The format string.
 
detail::source_location location
 The source location of the format string.
 

Detailed Description

Wraps a format string and its source location.

Useful for logging functions that have a variadic list of arguments and thus cannot use the usual way of passing in a source location via default argument.


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