|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-25 13:50:17
From: "Samuel Krempp" <krempp_at_[hidden]>
> On Fri, 2002-01-25 at 18:23, Peter Dimov wrote:
>
> > I haven't looked at this in detail, but the T & / T const & overload is
> > ambiguous when the argument is const.
>
> I am not sure about that.
>
>
> Of course, if T is a const type,
> void foo(const T& );
> and
> void foo( T& );
> are the exact same thing.
[...]
> What is known for sure, is that gcc and comeau both accepts the
> following :
Yes, you are right. I remember this being reported as ambiguous by the EDG
front end but this must have been an older version.
In any event, the active issue still has no resolution.
http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#214
I wonder how does EDG disambiguate the call.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk