[cfe-dev] Clang 3.0 variadic template pack expansion error

Nathan Ridge zeratul976 at hotmail.com
Mon Jan 9 17:12:59 PST 2012


> 2)
>
> Tuple( FirstType ValueIn, RestTypes ...Others )
> :Tuple( Others... ), Value( ValueIn )
>
> should be
>
>
> Tuple( FirstType ValueIn, RestTypes ...Others )
>
> :Tuple( Others ), Value( ValueIn )
>
> note the "..." after "Others". A variadic parameter pack needs to be "expanded"
> by writing "..." after it every time you mention it.

Sorry, I mixed that up. I meant:

Tuple( FirstType ValueIn, RestTypes ...Others )
:Tuple( Others ), Value( ValueIn )

should be

Tuple( FirstType ValueIn, RestTypes ...Others )
:Tuple( Others... ), Value( ValueIn )

Regards,
Nate
 		 	   		  



More information about the cfe-dev mailing list