const and mutable have been in C++ for many years. How well do you know what they mean today?



Problem



JG Question



1. What is a “shared variable”?

Guru Questions



2. What do const and mutable mean on shared variables?

3. How are const and mutable different in C++98 and C++11?