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

Function Log

12.06-logStatementInConstexpr0/main.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template<typename... Args>
9constexpr void Log(std::string_view fmt, const Args&... args)
10{
11 if(not std::is_constant_evaluated()) {
12 printf(fmt.data(), args...);
13 }
14}
15
16constexpr bool Fun()
17{

Callers 1

FunFunction · 0.70

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected