ostream::operator <<(int) has already been declared in `ostream.h`
-
Hi, When I include I get thrown the error below. I'm not so sure why. It was my first inclusion of the header file. In the file, -Error : ostream::operator <<(int) has already been declared in `ostream.h` the code snip its referring to is the following #if _G_HAVE_BOOL ostream& operator<<(bool b) { return operator<<((int)b); #endif It dosen't seem to know how to handle the 'bool'. Thinking the parameter is an int value. Even when I #undef _G_HAVE_BOOL to bypass the ostream declaration , it throws the same error. Anybody got any ideas?? cheers Paul
-
Hi, When I include I get thrown the error below. I'm not so sure why. It was my first inclusion of the header file. In the file, -Error : ostream::operator <<(int) has already been declared in `ostream.h` the code snip its referring to is the following #if _G_HAVE_BOOL ostream& operator<<(bool b) { return operator<<((int)b); #endif It dosen't seem to know how to handle the 'bool'. Thinking the parameter is an int value. Even when I #undef _G_HAVE_BOOL to bypass the ostream declaration , it throws the same error. Anybody got any ideas?? cheers Paul