[c++0x] cannot return a constant
Roman Kononov
roman@binarylife.net
Tue Nov 30 21:53:00 GMT 2010
2010-11-30 21:20 CST, Jonathan Wakely <jwakely.gcc@gmail.com> said:
>We do. The point is your question is off-topic on this list, because
>you are complaining about the C++0x language, which as far as we know
>GCC implements correctly. If you don't like the language, complain
>somewhere else.
>
Then please tell me which part of the standard makes the mentioned code
invalid?
I'm not complaining and I like the language. My point is that I'm trying
to find a loophole in the standard so that g++, without violating the
standard, could allow move-and-destroy of constants.
Thanks.
More information about the Gcc
mailing list