Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
Description
Like constexpr, it ensures that no dynamic initialisation can take place, which means it doesn't interfere (as much) with program startup. Unlike constexpr, constinit objects aren't implicitly const. constinit therefore acts as a static assertion that an object doesn't require dynamic initialisation.