This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Variadic templates, third revision (1/3)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Doug Gregor" <doug dot gregor at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 02 Nov 2006 15:33:23 +0100
- Subject: Re: [C++ PATCH] Variadic templates, third revision (1/3)
- References: <24b520d20611010816m529bb089la735ca0ba13abdb3@mail.gmail.com>
"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.
-- Gaby