Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-13 17:17:40


Valentin Samko <boost_at_[hidden]> writes:

>>> David Abrahams wrote:
>>>> cases, and especially those cases where the function needs or ought to
>>>> be templated. I think the syntax should be
>>>>
>>>> auto(x){ x->first < 0 }
>>>
>>> where is "return" ?
>
> DA> Good observation. Nowhere. Have you got a problem with that? Also
> DA> no semicolon.
>
> So,
> auto(x){ x->first < 0 }
> returns bool, and
> auto(x){ x->first < 0; }
> returns void?

Did I say that? I didn't mean to say that.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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