470,862 Members | 1,816 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

are 'mutable' and 'volatile' a Storage Classes in C++?

are 'mutable' and 'volatile' a Storage Classes in C++?
Jun 27 '08 #1
2 2472
In article <7a396afc-bc56-43c6-8521-d857c4442107
@s21g2000prm.googlegroups.com>, su*******@gmail.com says...
are 'mutable' and 'volatile' a Storage Classes in C++?
Mutable is but volatile is not (volatile is a qualifier).

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jun 27 '08 #2
On Jun 7, 8:29 am, Jerry Coffin <jcof...@taeus.comwrote:
In article <7a396afc-bc56-43c6-8521-d857c4442107
@s21g2000prm.googlegroups.com>, sumsin...@gmail.com says...
are 'mutable' and 'volatile' a Storage Classes in C++?
Mutable is but volatile is not (volatile is a qualifier).
I might add that already in C, "storage class" was sort of a
catch-all, playing more of a syntactic role than anything else:
in C, typedef was a "storage class", for example. C++ moved
typedef out of the storage class category, but then added a
number of other things, and it's still more or less a catch-all;
the words "storage class" themselves only apply semantically to
most of the members, some of the time. (Declaring a variable at
namespace scope "static", for example, doesn't change anything
with regards to how it is stored.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Gordon Airport | last post: by
50 posts views Thread by Dan Perl | last post: by
9 posts views Thread by mlimber | last post: by
9 posts views Thread by d.f.s. | last post: by
3 posts views Thread by Sambo | last post: by
6 posts views Thread by titan nyquist | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.