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: [RFA] Implement DW_TAG_*_parameter_pack


On 09/10/2009 11:07 AM, Dodji Seketeli wrote:
Ah. Thanks for noticing this. Is it possible though that a function
parameter pack that is not at the end of the parameter list gets expanded
into an empty list of arguments ?

It should be possible. Basically, this can happen if the parameter pack isn't deduced:


template <class... Ts>
class A
{
  template <class... Us> void f (Ts... ts, Us... us);
};

If we have A<>, then ts will be an empty list.

Jason


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