This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: variadic templates supported in non-c++0x mode
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Jan van Dijk <jan at epgmod dot phys dot tue dot nl>, gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Tue, 10 Mar 2009 12:42:43 +0100
- Subject: Re: variadic templates supported in non-c++0x mode
- References: <200903101156.16887.jan@epgmod.phys.tue.nl> <49B64C98.3070608@oracle.com>
2009/3/10 Paolo Carlini <paolo.carlini@oracle.com>:
>>
>> warning: variadic templates only available with -std=c++0x or -std=gnu++0x
>>
> I'm afraid the behavior you are seeing is by design, and is not specific
In any case the wording of the warning is weird: it says variadic
templates are not available but then it is accepted with just a
warning.
> to variadic templates. It also happens, for example, for:
>
> enum class e { };
>
What is the warning here?
Cheers,
Manuel.