Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] BOOST_*_EQUAL against constants
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2009-07-19 07:56:09


On Sun, 19 Jul 2009 01:54:18 +0000 (UTC), Gennadiy Rozental wrote:

> Alexander Lamaison <awl03 <at> doc.ic.ac.uk> writes:
>
>> I can obviously cast the 0 constant to an unsigned it but it's getting
>> tedious doing this every time. Surely there must be a better way?
>
> 1. Use 0U

0U?!

How in 10 years of C/C++ have I managed to completely miss this? Thanks :D

Alex


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net