const static int foo = 42;
I saw this in some code here on StackOverflow and I couldn't figure out what it does. Then I saw some confused answers on other forums. My best guess is that it's used in C to hide the constant foo
from other modules. Is this correct? If so, why would anyone use it in a C++ context where you can just make it private
?