Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2004-09-08 03:53:00


A single #include <boost/date_time/posix_time/posix_time.hpp>
produces the following warnings on VC 7.1. Can this be fixed?

Cheers,

Stefan

C:\views_cvs\boost\boost\date_time\time_system_counted.hpp(57) : warning
C4244: 'initializing' : conversion from
'boost::date_time::counted_time_rep<config>::int_type' to
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_int_type',
possible loss of data
         with
         [
             config=boost::posix_time::millisec_posix_time_system_config
         ]
         and
         [
             ymd_type_=boost::gregorian::greg_year_month_day,
             date_int_type_=boost::date_time::int_adapter<unsigned
long>::int_type
         ]
         C:\views_cvs\boost\boost\date_time\time_system_counted.hpp(52)
: while compiling class-template member function
'boost::date_time::counted_time_rep<config>::date_type
boost::date_time::counted_time_rep<config>::date(void) const'
         with
         [
             config=boost::posix_time::millisec_posix_time_system_config
         ]
         C:\views_cvs\boost\boost\date_time\time_system_counted.hpp(111)
: see reference to class template instantiation
'boost::date_time::counted_time_rep<config>' being compiled
         with
         [
             config=boost::posix_time::millisec_posix_time_system_config
         ]
         C:\views_cvs\boost\boost\date_time\time.hpp(52) : see reference
to class template instantiation
'boost::date_time::counted_time_system<time_rep>' being compiled
         with
         [
             time_rep=boost::posix_time::int64_time_rep
         ]
         C:\views_cvs\boost\boost\date_time\posix_time\ptime.hpp(32) :
see reference to class template instantiation
'boost::date_time::base_time<T,time_system>' being compiled
         with
         [
             T=boost::posix_time::ptime,
             time_system=boost::posix_time::posix_time_system
         ]


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