Re: [boost] Report from Berlin C++ Standards Committee meeting

13 Apr
2006
13 Apr
'06
9:50 p.m.
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-
7001
Age (days ago)
7001
Last active (days ago)
0 comments
1 participants
participants (1)
-
Powell, Gary