Boost logo

Boost :

Subject: [boost] [date_time, Boost 1.40.0]
From: Christoph (christoph.duelli_at_[hidden])
Date: 2009-08-31 15:50:03


including
   boost/date_time/posix_time/posix_time.hpp
or boost/date_time/gregorian/gregorian.hpp

gives lots of warning for the following line(s):
  (boost/date_time/gregorian/conversion.hpp; posix_time, tooo)
  line 44
  std::tm datetm = {}; // zero initialization is needed for extension
members, like tm_zone
 
I admit I don't understand the comment.
Is it possible to fix that (correctly) such that including the header does
not produce like 20 warnings in each .cpp file including the header?
(I am using linux running gcc 4.1.2)

Best regards
Christoph


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