This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]