Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-03-22 10:06:46


Vladimir Prus wrote:
> With both g++ 3.0 and online Comeau compiler it just says
> that "my" has no member "foo", which is supposedly not what
> you want? I don't understand how this can work at all: if
> default parameter is never instantiated (which is what my
> inderstanding of std::14.7.1/[1-2] suggests, but contrary to
> compiler's opinion),

Well, it is instantiated (otherwise, how you could call a 2-parameters
function with a single argument?), but _after_ the overload resolution took
place - here's the error. See Jason's post for a way to make it work.

> there's not way to check if the member
> is present. Otherwise, you'll have compile error.

Aleksey


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