Skip to main content
3 votes

How to prevent 'global variables' in a big project?

In the new bright world of C++ Core Guidelines (endorsed by no less than Bjarne Himself and current WG21 convener Herb Sutter) - there is Clang-tidy, and its avoid-non-const-global-variables option: ...
No-Bugs Hare's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible