Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ main
Function
main
12.14-constexprAllocation2/main.cpp:49–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
}
48
49
int main()
50
{
51
auto c = CreateCar(1);
52
53
constexpr auto f = FastestCar();
54
55
static_assert(f == 2);
56
}
57
#else
58
int main()
59
{
Callers
nothing calls this directly
Calls
2
CreateCar
Function · 0.70
FastestCar
Function · 0.70
Tested by
no test coverage detected