when I'm using wxFAIL(); in my code I'm getting an
"error: void value not ignored as it ought to be".
If I'm using it without the brackets e.g. wxFAIL; then I don't get that error.
Wouldn't it be more intuitive if the call with the brackets would be the
correct one?
Regards Peter
PM> when I'm using wxFAIL(); in my code I'm getting an
PM> "error: void value not ignored as it ought to be".
PM> If I'm using it without the brackets e.g. wxFAIL; then I don't get that error.
PM> Wouldn't it be more intuitive if the call with the brackets would be the
PM> correct one?
Maybe but I believe it always worked like this (or did this change?) and
I'm not sure if the macro can be changed to work in both ways.
My recommendation is to always use wxFAIL_MSG() anyhow, I consider it an
error now to have wxFAIL at all. wxASSERT without message may make sense
sometimes if the condition is clear on its own but wxFAIL never does.
Regards,
VZ