Does const mean thread-safe in C++11?
I hear that const means thread-safe in C++11 . Is that true? Does that mean const is now the equivalent of Java 's synchronized ? Are they running out of keywords ? I hear that const means thread-safe in C++11 . Is that true? It is somewhat true... This is what the Standard Language has to say on thread-safety: [1.10/4] Two expression evaluations conflict if one of them modifies a memory location (1.7) and the other one accesses or modifies the same memory location. [1.10/21] The execution of a program contains a data race if it contains two conflicting actions in different threads, at least