This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Implementation of C++0x decltype
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Douglas Gregor <doug dot gregor at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 03 Feb 2007 21:25:20 -0600
- Subject: Re: [C++ PATCH] Implementation of C++0x decltype
- References: <DD0CB178-0922-4E11-B5E4-0AA796BB316E@osl.iu.edu>
Douglas Gregor <doug.gregor@gmail.com> writes:
| Hello all,
|
| The attached patches (for gcc, cp, testsuite subdirs) implement the C+
| +0x "decltype" facility, which computes the declared type of an
| arbitrary expression. The latest standard wording, on which this
| patch is based, is available here:
|
| http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2115.pdf
|
| Decltype has not yet been voted into the C++0x working draft, but it
| has been approved by the C++ Evolution Working Group and has been
| extensively discussed in the Core Working Group, so it is relatively
| stable (only corner cases are likely to change). It's a highly-
| requested feature in the library writer community. This patch only
| makes decltype available when the experimental C++0x mode is enabled.
|
| Tested i386-apple-darwin8.8.1, no regressions.
|
| Okay for mainline?
Thanks for taking the time to implement this.
Procedural comments: Following the policy we all agreed on not so long
ago, I believe the implementation should be in only after adoption in
the WP (which is next meeting in Oxford, April 2007).
I realize I'm co-author of the proposal and you're just helping.
But, I believe the policy holds for everybody :-)
I'd send more technical comments later.
Thanks!
-- Gaby