Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-09-21 13:43:28


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Geoffrey Irving
> {assert(i<3);return (&x)[i];}

Hi, when checking for an unsigned index/counter less than 3, it is
customary to use the following comparison:

assert(i<3u);

Thanks


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