Parse error on functor wrapped with paranthesis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
	I met a problem compiling the code below

#include <algorithm>

...
bool x = (std::less<int>()(10,20));


	On this line, g++ 3.2 generates an error message of
'parse error before numeric constant'. Without paranthesis, it is fine.
Is this a bug?

thanks for reading,

Wei


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux