$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Eric Niebler (eric_at_[hidden])
Date: 2004-02-29 14:33:31
Eric Niebler wrote:
> 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.)
>
Put another way, how do we know min(foo,foo) doesn't return a bar?
There's a limit to how far we can take this.
-- Eric Niebler Boost Consulting www.boost-consulting.com