Boost logo

Boost :

Subject: Re: [boost] [conversion] review
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-08-31 16:13:19


On Aug 31, 2011, at 3:01 PM, Emil Dotchevski wrote:
>
> To be fair, function templates can be specialized without defining a
> main template, and in that case you get the same amount of coupling as
> when you use regular functions.
>
> I do agree however that the call syntax should not rely on <>. One
> reason is that it turns off ADL. Another reason is that sometimes an
> implicit conversion to match an existing non-template overload is
> preferable to instantiating a template.

The function overload customization point in Conversion uses a dummy parameter and no <>. convert_to<> is a just a more pleasant wrapper over that. So I think these language features are still available.
 


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