Reference: The C++ Standard Library: A Tutorial and Reference
I tried this on a couple of compilers.
It worked on the IBM AIX compiler, but it did not work on the Sun compiler.
It only worked for references, pointers and pointers to data members.
See also: volatile - Multithreaded Programmer's Best Friend by Andrei Alexandrescu.
No comments:
Post a Comment