This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-10-26


1231. Variadic templates requiring an empty pack expansion

Section: 13.7.4  [temp.variadic]     Status: C++11     Submitter: John Spicer     Date: 2010-12-20

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Should the Standard allow declarations of variadic templates or member functions of class templates where only an empty expansion would be well-formed? For example,

    template<typename ... T> struct A {
      void operator++(int, T... t);
    };
    template<typename ... T> union X: T... { };
    template<typename ... T> struct A: T..., T... { };