Why need to qualify a member function "volatile"?
Why need to qualify a object "volatile"?
When need to "const_cast" away "volatile" of an object and a member
function?
I also saw some code of a function argument of "volatile" type. What's the
purpose there?
class vClass
{
void foo() volatile {}
void boo(){}
};
int main()
{
volatile vClass v;
v.foo(); //no problem
v.boo(); //compile error
...
}
Thanks for your help!