Boost logo

Boost :

Subject: Re: [boost] compilation warning on HEAD
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-12-13 18:36:32


On Thu, Dec 13, 2012 at 10:26 PM, Joshua Boyce
<raptorfactor_at_[hidden]> wrote:
> On Fri, Dec 14, 2012 at 4:04 AM, Gaetano Mendola <mendola_at_[hidden]> wrote:
>
>> The HEAD in trunk have some compilation warnings using gcc 4.7.2
>> the following will fix some of those.
>>
>> Another warning about unused result is in here:
>>
>> libs/serialization/src/basic_iarchive.cpp line 576, the value is
>> used in a BOOST_ASSERT, I don't know how you manage those cases.
>>
>>
> Typically the following will work:
> int result = GetMeaningOfLife();
> (void)result; // Tell the compiler to be quiet. Does not affect codegen.
> BOOST_ASSERT(result == 42);

BOOST_VERIFY(42 == GetMeaningOfLife()); ?

-- 
Olaf

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