Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-04-12 19:18:42


Valentin Samko wrote:

> With the "auto" keyword one would be able to write
>
> auto f = <> less(x, y) { return x < y; };
>
> where "f" is a function object, somewhat equivalent to a local
> function. This is from a mixture of n1958 and n1968 which we are
> working on.

Not bad, although I still prefer

    inline f( x, y ) { return x < y; }


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