Thinking about const in c++