Like:
class A
{
volatile int i;
};
A a;
My question is that will the entire a become cv qualified? May be a naive question.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, all of
awill not bevolatile. Just as you can have fields of a class that areconstwithout every instance of the class beingconst, you can havevolatilefields that do not make the entire class instancevolatile.