|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2004-12-01 08:04:53
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
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