warning: control reaches end of non-void function|
warning: control reaches end of non-void function|
That you are not returning from all paths that exit the function - usually that there isn't a return at the end of the function.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
The function is declared to return a value, for example int or double and so you must use a return statement to return a value at the end of the function. Any return statement in the function must specify a value.
I think what Elysia was saying was to make the return value void, ie:
Code:void foo( void ) { //... }
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }