dimanche 1 février 2015

Is there any option to defer the evaluation of a function call in a variadic template

Suppose a variadic template:


void f(T value, Args... args)


As one of the arguments a function is passed which returns a value.


Is there a simple way to defer the evaluation of the function, so we can decide inside f() it will be evaluated or not ?


And with a simple way I mean preferably without creating a complex calling syntax.


Aucun commentaire:

Enregistrer un commentaire