I was wondering if anyone knows what restrictions are on the / typecast conversion operator?
So, for example, I can have the following override operators:
class Test {
operator int() { return 0; };
operator int*() { return nullptr; };
}
For a regular function, I could also have a pointer to an array type. For instance.
int (*MyFunc())[4] { return nullptr; };
However, I do not know how to do the same for the conversion operator (or even if it is legal). I tried several different options and VS2010 and no one works. (For instance:
operator int (*())[4] { return nullptr; };
operator int(*)[4]() { return nullptr; };
, VS2010 , . . - ? , - " ", . , , ++.
user1190309