-
Invalid return type
Hi. I've got a problem. In C++ GUI Programming with Qt 4 was something like that: constructor is bool, and in one of functions appear return Save() (which was declared as bool) and if I try to do something similar, constructor bool and try to return it, there is error about invalid return type for specyfication
-
Re: Invalid return type
There is no such thing as constructors returning a value.
Read that book again, probably you missed something.
Regards
-
Re: Invalid return type
No, I didn't miss. I've done simple slot which returns bool function.
-
Re: Invalid return type
Do you have a private constructor and some kind of static bool function that creates class instances? Or what?
Why don't you post the code?