Home > Back-end >  Why the static member function cannot switch to an integer value?
Why the static member function cannot switch to an integer value?

Time:09-20

Why the static member function cannot switch to an integer value?
 
The class AClass {
Public:
Void the Get () {

}
};
Int main () {
Size_t n=(size_t) (& amp; AClass: : Get);
}

CodePudding user response:

You the wrong type, how to convert?

CodePudding user response:

Size_t is longlong, transition longlong also not line
  • Related