Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-02 08:00:04


Jens Seidel:

> On Wed, Apr 02, 2008 at 10:25:03AM +0000, Colin Caughie wrote:
>> I just tried moving to 1.35.0 (from 1.34.0) and am getting the following
>> warnings:
>
>> We compile with -Wall and -Werror, and would like to continue doing so.
>> Anyone
>> know of a way of suppressing this warning?
>
> Apply the (verbose) patch from http://svn.boost.org/trac/boost/ticket/1556

Does g++ also warn about

    struct timespec timeout = {};

?

Another way to avoid the full list is

    timespec timeout = timespec();

This will simplify

shared_mutex()
{
    state_data state_ = { 0 };
    state = state_;
}

to

shared_mutex(): state()
{
}

unless compiler bugs get in the way.


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