-
Notifications
You must be signed in to change notification settings - Fork 51
capture parameter pack as a tuple to work around gcc4.8 #71
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
capture parameter pack as a tuple to work around gcc4.8 #71
Conversation
Great, thanks! Do you think we should use this new implementation in all cases, or only when older gcc versions are used? |
There's no performance overhead (runtime or compile time) so I'd say: it's simpler to just leave it this way until gcc 4.8 can be dropped |
I think we may have to do the same thing with the parameter packs in
But this does fix the errors with safe, so I think it is a good workaround. |
actually, those errors are all from stop(). I think we can just use |
Cool, can confirm these changes fix compilation on 4.8.5, thanks @bkietz for working through this! People will definitely be happy they can use cpp11 on older gcc versions. |
fixes #69
repro: https://wandbox.org/permlink/po7niLIoJ9HgJ74p
fixed: https://wandbox.org/permlink/RTg6mAArF13XyuRU
There are more sophisticated/general implementations of make_index_sequence/apply if desired