MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Format

Method Format

10.16-logFunction2/main.cpp:16–21  ·  view source on GitHub ↗

#A Constructor allowing implicit conversion

Source from the content-addressed store, hash-verified

14
15 // #A Constructor allowing implicit conversion
16 Format(
17 const char* _fmt,
18 std::source_location _loc = std::source_location::current())
19 : fmt{_fmt}
20 , loc{_loc}
21 {}
22};
23
24// #B Log now takes Format which implicitly adds source location

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected