I have several times seen a construct template foo(T...) if(T.length == 1) { ... }
What is that good for? Why using variadic parameter if anyway exactly one parameter is required?!?
Dominikus Dittes Scherkl via Digitalmars-d-learn Wed, 20 Aug 2014 08:15:34 -0700
I have several times seen a construct template foo(T...) if(T.length == 1) { ... }
What is that good for? Why using variadic parameter if anyway exactly one parameter is required?!?