Q: VC7 boost1.32 date_time\time_system_counted.hpp(57) : warning C4244: 'initializing'

From the department of unexplained warnings... I found this one which I hope someone out there could help me kill. The warning reads: C:\Boost\include\boost-1_32\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',
Hello, possible loss of data What can I do to get rid of this one? many thanks Dan --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.803 / Virus Database: 546 - Release Date: 30-Nov-04

On Wed, 1 Dec 2004 11:59:08 +0200, Dan Dimerman wrote
Hello,
From the department of unexplained warnings... I found this one which I hope someone out there could help me kill. The warning reads:
C:\Boost\include\boost- 1_32\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
What can I do to get rid of this one?
Supress the warning or add a static cast: typename calendar_type::date_int_type date_int_type; date_int_type dc = static_cast<date_int_type>(day_count()); Jeff
participants (2)
-
Dan Dimerman
-
Jeff Garland