Boost logo

Boost :

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


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Geoffrey Irving
>
> On Thu, Sep 21, 2006 at 10:43:28AM -0700, Sohail Somani wrote:
> > > -----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);
>
> Customary? You don't need to be that polite: my code was just wrong.
> Thanks for the correction.

I was just kidding:

http://tinyurl.com/kcpm8

:)


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