Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-13 10:01:45


I view this as a logical extension of the notion that you can do this:

void f();

template <class T, class F> g(F f)
{
    return f();
}

...
g(f); // legal
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, November 13, 2001 9:32 AM
Subject: Re: [boost] bind functionality request

> From: "David Abrahams" <david.abrahams_at_[hidden]>
>
> [about f(g()) where g() returns void]
>
> > Should we really cripple bind() just because the core language is
> crippled?
>
> Is it? f() takes zero arguments. The expression list 'g()' contains one
> expression. They are incompatible.
>
> --
> Peter Dimov
> Multi Media Ltd.
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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