Boost logo

Boost :

From: Powell, Gary (powellg_at_[hidden])
Date: 2006-04-13 17:50:39


> So,
> auto(x){ x->first < 0 }
> returns bool, and
> auto(x){ x->first < 0; }
> returns void?
>
> I think it is very confusing and error prone to change the
> return type when user misses (or accidently types) a semicolon.
>
> Valentin Samko
> http://val.samko.info

   void (x) { x->first < 0; }

for a void return?
or

   (x) { x ->first < 0; }

And does a lack of a type denote a "auto" type? and if I specify one it over rides it?

   bool (classT * x) { x->first < 0; }

and with concepts do I have to specify the concept it satisfies as well?

   bool concept(pointerType(x),LessThanComparable(??::first)) (x) { x->first > 0; }

So how do I specify the type of "x" to the concept stuff for concept checking?

  -Gary-


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