GotW #6a Solution: Const-Correctness, Part 1 -- Herb Sutter
The solution to GotW #6a is now available:
GotW #6a Solution: Const-Correctness, Part 1 (updated for C ++11/14)
by Herb Sutter
From the article:
Starting with C++11,
conston a variable that is possibly shared means read-only, safe to read concurrently without external synchronization.If you perform any operation on a
constshared variablex, or call a const member function onx, you can assume that operation does not change the observable value ofx-- or even modify the bits ofxin an observable way even in the presence of concurrency. ...Guideline: Remember the “M&M rule”: For a member variable,
mutableandmutex(oratomic) go together. ...

Note: This updated working draft contains all of the updates approved at the Bristol ISO C++ meeting to make this the C++14 Committee Draft. Today our project editor Stefanus Du Toit, wth the kind help of Jonathan Wakely and our editorial committee of Daniel Kruegler, Alisdair Meredith, Mike Miller, and Richard Smith, finished applying and verifying the updates voted in at Bristol. This document has now been transmitted to SC22 for circulation for C++14's primary international comment ballot.