19 Feb
2010
19 Feb
'10
5:11 p.m.
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