11 Jul
2017
11 Jul
'17
10:08 p.m.
If that's the problem, you could use
template
result( A1&& a1, A2&& a2, A&&... a ); which would be rejected immediately in the one-arg case and hence shouldn't affect its compile times. I SFINAE on sizeof...(A) >= 2 instead, but I might switch.
Ok, these are now implemented in develop branch with test cases. Appear to work well and no measurable effects on compile times thanks to the two arg form. Thanks for the idea Peter. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/