Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::thread - many compiler warnings
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-22 10:55:42


AMDG

Manfred Schwind wrote:
> The second warning is caused by the following line in conversion.hpp:
>
> std::tm datetm = {}; // zero initialization is needed for extension members, like tm_zone
>
> In this line I get the "missing initializer" warning for every member of the struct, e.g. tm::tm_sec, tm::tm_min, tm::tm_hour etc.
> What's the intension by initializing with empty braces? IMO this is not a standard initialization method.
>

Yes it is.

In Christ,
Steven Watanabe


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