lundi 28 mars 2016

C++ how to make this as a volatile pointer inside constructor

I know I can add volatile keyword at the end of member function declaration to make this pointer as volatile but how to do it inside constructor ?

class A {
    void method() volatile; // inside method this is volatile pointer.
    A() {;} // How to make this as volatile pointer here.
}

Thanks

Aucun commentaire:

Enregistrer un commentaire