A
alexander.svk
If in functions this is possible to unpack the traiing parameter at first, why it's not in classes.
If in functions this is possible to unpack the traiing parameter
at first, why it's not in classes.
Please try again asking a question that can be answered without having
to read your mind. Thanks.
вторник, 28 Ð¼Ð°Ñ 2013 г., 13:53:26 UTC+2 пользователь SG напиÑал:
There're 2 types of contexts for templates. If the context is a class/struct, namely
'...template<typename R, typename ... Args>
struct FunctorImpl<R (Args ...)>...', then the parameteres may be expanded starting from the 'head'. If the context is a function, there's no such restriction.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.