Hi,
consider this:
#include <algorithm>
enum X { foo, bar };
int main()
{
std::max( foo, bar );
return 0;
}
GCC 3.3.5 (with Dinkumware's std lib) warns that a reference
to a local object is returned in the above code. Neither VC8
nor XCode2's GCC (both with Dinkumware, too) complain about
this code. Am I right in supposing that this is simply a bug
in GCC 3.3.5?
TIA,
Schobi
--
Sp******@gmx.de is never read
I'm Schobi at suespammers dot org
"The sarcasm is mightier than the sword."
Eric Jarvis