Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.Convert
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-02-26 11:18:29

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at