C++ PATCH: PR 20599 (1/3)

Theodore Papadopoulo Theodore.Papadopoulo@sophia.inria.fr
Tue Sep 19 16:27:00 GMT 2006


On Tue, 2006-09-19 at 10:15 +0200, Richard Guenther wrote:
> And I suggest to either warn about or disable c++0x features if
> -std=c++0x is not specified (barring a way to have tr1 use c++0x
> features even if not
> in c++0x mode).

Calling the extension -std=c++0x is probably a wrong choice as it seems
to make some promise... It is better probably to explicitly state the
fact that the thing is experimental (whatever are the other measures
taken to not over-expose users to the new stuff)...

-std=c++-experimental or -std=c++-experimental-0x

Another way of giving the code some test is to find a way to enable it
only for the purpose of libstdc++. As it has been mentionned, this
feature simplifies a lot at least the tuple implementation (and I think
I remember that nothing constrains the library to be implemented in
"standard c++").

So if the implementation is not too intrusive, if it helps having a
better library,...

That being said, I'd love to play with variadic templates as a simple
user... and probably will do it !!!





More information about the Gcc-patches mailing list