On quarta-feira, 24 de julho de 2013 12:59:31, Mandeep Sandhu wrote:
> > http://channel9.msdn.com/posts/C-and-Beyond-2012-Herb-Sutter-You-dont-know
> > -blank-and-blank
> Thanks for sharing this link. It was very informative. (BTW, this applies
> only to C++11)

It does not apply to anything.

This is an idea by Herb Sutter and, to be honest, I agree with him that const 
*should* mean that.

But it doesn't. The language does not enforce anything. There's no way to 
guarantee that the user code in a const function is actually thread-safe. It's 
very easy to break out of the safety:

        const_cast
        mutable

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to