Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ Dual
Function
Dual
12.22-constantEvalutedAndConsteval1/main.cpp:8–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
7
#if WILL_FAIL
8
constexpr int Dual(int i)
9
{
10
if(false) {
11
return CompileTime(i) + 1;
12
} else {
13
return 42;
14
}
15
}
16
17
#endif
18
Callers
nothing calls this directly
Calls
1
CompileTime
Function · 0.85
Tested by
no test coverage detected