This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Re: [C++ PATCH] Variadic templates, third revision (1/3)
On 02 Nov 2006 15:33:23 +0100, Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
you should update cxx-pretty-print.c too.
You're right; thanks!
"Doug Gregor" <doug.gregor@gmail.com> writes:
+/* Warn about the use of variadic templates when appropriate. */
+void
+maybe_warn_variadic_templates (void)
+{
+ if (!flag_cpp0x && !in_system_header)
+ pedwarn ("ISO C++ does not include variadic templates");
+}
Tha flag should check for GNU C++0X, not just C++0X.
Because they aren't in the working paper? Yeah, we could do that. If
variadic templates manage to make it into the WP before 4.3 ships,
we'd move it back to C++0x mode.
Cheers,
Doug