Boost logo

Boost :

Subject: Re: [boost] [review] Conversion review ends today
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-08-31 15:42:17


Le 31/08/11 20:55, Gordon Woodhull a écrit :
> Hi Jeff, Vicente,
>
> On Aug 30, 2011, at 4:50 PM, Vicente J. Botet Escriba wrote:
> This seems similar to the Gordon suggestion. While this approach could work on most of the cases, is not able to manage with different conversion for the same couple of Source/Target types but applied to different leaves.
>
> The single way Boost.Conversion could take care of these specific cases and also concept refinement is to wrap the parameter with a specific class.
> But this could not be enough efficient and quite cumbersome.
> Vicente, what do you mean by "different leaves"? I wasn't aware that choosing different conversion behaviors was in the scope of the current library/review.
What I mean is that if the user wants to convert two leafs (of type int)
to strings using different conversions she will need to replace the ints
by different types.
Boost.Conversion doesn't allows to choose different conversion for the
same type, but neither the functor.

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk