|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-02-29 16:16:24
"Eric Niebler" <eric_at_[hidden]> writes:
> David Abrahams wrote:
>
>>
>> Urrrh, your "std_min" function makes an unqualified call to min,
>> right? How can you know whether the invoked function is going to
>> return a value or a reference?
>>
>
> I see your point, but is this a corner case we really want to handle? If
> users are overloading min and max, shouldn't they be using
> std-compatible signatures? (I'm sincerely asking, these are not
> rhetorical questions.)
I don't think we want to impose that requirement most of the time, and
I don't see any reason to. Usually when using min or max we're just
interested in the result value, and if you replace existing
unqualified calls with calls to your wrapper you will break some user
code against which we are unable to test.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk