
21 Sep
2006
21 Sep
'06
5:53 p.m.
On Thu, Sep 21, 2006 at 10:43:28AM -0700, Sohail Somani wrote:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] 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. Geoffrey