
26 Feb
2009
26 Feb
'09
4:18 p.m.
Emil Dotchevski wrote:
Anyway, another question: is there a way to make operator() not be a template?
It should be doable if you only need to receive the "source" argument to convert from. But if you want other arguments as well, I can't figure out how to do it without a template, unless to resort to type erasure. If you're trying to extract the conversion code into a separate TU, then you can leave the operator() a template, so it is able to transform the named arguments pack into a call of a non-template function with positional arguments only.