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