79755022

Date: 2025-09-03 19:25:50
Score: 2.5
Natty:
Report link

Yeah - since C++11 (I think), if a TU defers dynamic init of namespace-scope statics until first odr-use, that init is done exactly once in a thread-safe way. If you need hard guarantees, use function local static or std::call_once or make it constinit/constexpr

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KXNVRA