SourceLocation::SourceLocation

Construct from a function name and a source location. The func argument must be constructed from the C++11 func macro. Ref: https://en.cppreference.com/w/cpp/language/function.html#func Non-static string literals are not supported.

Synopsis

Declared in <util/log.h>

explicit
SourceLocation(
    char const* func,
    std::source_location loc = std::source_location::current());

Parameters

NameDescription
funcThe overriding function name (from func).
locThe underlying source location, defaulting to the call site.