MPL. Difference between variadic and numbered forms of sequences
When I write expressions like:
template
AMDG dilas dilas wrote:
When I write expressions like:
template
struct pairs: fold , push_back<_1,vector2 > >{}; Everything works just fine, but when I use variadic form:
template
struct pairs: fold , push_back<_1,vector > >{}; I have a lot of errors. Can someone explain me what's the difference?
MPL lambdas only work with templates that have up to five arguments. vector2 has two parameters, so it's okay. vector has 20 parameters (all of which are defaulted), so it breaks. In Christ, Steven Watanabe
participants (2)
-
dilas dilas
-
Steven Watanabe