Boost logo

Boost :

From: Darren Cook (darren_at_[hidden])
Date: 2006-04-13 19:05:03


>>>> inline bool less( x, y ) { return x < y; }
>>>> ...
>>>be leaving out the parameter type. I think that is fine, but I'd thus
>>>rather make lambdas
>>>look different so that there is no confusion of what kind of
>>>parameter list we are dealing with.
>>>
>>> (e.g. with the syntax <>(x, y) { return x < y; } )

It seems to me that the use of the "inline" keyword inside a function
body makes it stand out sufficiently. The use of "auto" or "<>" is no
better at making it stand out, but not as meaningful when reading the code.

Darren


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