Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
template<typename... Args>
9
constexpr 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
16
constexpr bool Fun()
17
{
Callers
1
Fun
Function · 0.70
Calls
1
data
Method · 0.80
Tested by
no test coverage detected