You haven&#x27;t lived until you&#x27;ve implemented a compile-time counter in C++: <a href="http:&#x2F;&#x2F;b.atch.se&#x2F;posts&#x2F;constexpr-counter&#x2F;" rel="nofollow">http:&#x2F;&#x2F;b.atch.se&#x2F;posts&#x2F;constexpr-counter&#x2F;</a> (which doesn&#x27;t rely on compiler bugs)