[C++ PATCH] Variadic templates, third revision (1/3)

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Nov 2 14:38:00 GMT 2006


"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



More information about the Gcc-patches mailing list