Boost logo

Boost :

From: Paolo Invernizzi (arathorn_at_[hidden])
Date: 2006-03-17 16:38:50

Hi all,

Sorry in advance if this is not the proper way for suggest a little

Compilation with VC71 raise tons of possible loss of data warning
when using the microsec_clock::local_time() or universal_time(),
warnings that can be avoided adding cast to (int) and to
(boost::uint32_t) in:


       //The following line will adjusts the fractional second tick
in terms
       //of the current time system. For example, if the time system
       //doesn't support fractional seconds then res_adjust returns 0
       //and all the fractional seconds return 0.
       int adjust = (int)resolution_traits_type::res_adjust()/1000000;

       boost::uint32_t sub_sec = (boost::uint32_t)(filetime %
10000000) / 10; // microseconds

What is the correct procedure to supply a patch?

thanks in advance.

Paolo Invernizzi

Boost list run by bdawes at, gregod at, cpdaniel at, john at