home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06191.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-25  |  348.9 KB  |  1 channel  |  11,025 sample rate  |  32 seconds
Transcription: Like objects of build-in type, objects of class type can be declared to be volatile. You may, for example, have a class in which data members are altered by signal handlers or used by I O functions that are mapped into memory. Such access to data members do not appear in the code and the compiler might optimize the code in such a way that these changes are lost. When you declare an object to be volatile, you ask the compiler not to optimize accesses to its data members.