
13 Apr
2006
13 Apr
'06
9:17 p.m.
Valentin Samko <boost@digiways.com> 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