Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/cppinsights
/ g
Function
g
tests/p1938.cpp:5–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
consteval int f(int i) { return i; }
4
5
constexpr int g(int i) {
6
if consteval {
7
return f(i) + 1;
8
} else {
9
return 42;
10
}
11
}
12
13
14
constexpr int Fun(int i) {
Callers
1
main
Function · 0.70
Calls
1
f
Function · 0.70
Tested by
no test coverage detected