Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the condition to clarify the case that the parameter pack is n… #4707

Closed
wants to merge 1 commit into from

Conversation

xmh0511
Copy link
Contributor

@xmh0511 xmh0511 commented Jun 19, 2021

I still think "if the pack was introduced by a pack expansion" should be removed for bullet 8.1. For example, template<int...N> struct B{ B(){fun(N...);}};, Isn't that each element instantiated in N... does designate the corresponding template argument? However, int... N is just a template parameter pack declaration instead of a pack expansion(where the template parameter pack N is introduced by the parameter pack declaration). If add the condition seems that the latter clause is not suitable for this case. For type template parameter pack, it is the same. template<template<class T>... TMPL> struct C{using T = U<TMPL....>;};, template<class...T> struct D{using T = tuple<T...>;}, in all of these cases, the pack is introduced by the parameter pack declaration that is not a pack expansion itself, but each element actually does designate the ith template argument.

@jensmaurer
Copy link
Member

Rephrased the commit description in #4708. Thanks.

@jensmaurer jensmaurer closed this Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants