Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ Human
Class
Human
12.26-constexprStaticInitFiasco3/main.cpp:19–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
};
18
19
struct Human {
20
Human(int breath);
21
};
22
23
Human human{5}; // #B Create global human object
24
constinit Air air{9}; // #A Create global air object
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected