Re: [Boost-bugs] [Boost C++ Libraries] #4327: warning C4244: conversion from '__int64' to 'long', possible loss of data

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4327: warning C4244: conversion from '__int64' to 'long', possible loss of data
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-10 00:37:12


#4327: warning C4244: conversion from '__int64' to 'long', possible loss of data
--------------------------------------+-------------------------------------
  Reporter: viboes | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.44.0 | Component: thread
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by anonymous):

 Can anyone tell me the best way to work around the issue for a simple
 call:

 boost::this_thread::sleep(boost::posix_time::milliseconds(i_Milliseconds));

 fails this way:

 ...
 : see reference to function template instantiation
 'void
 boost::this_thread::sleep<boost::date_time::subsecond_duration<base_duration,
 frac_of_second>>(const TimeDuration &)' being compiled
 1> with
 1> [
 1> base_duration=boost::posix_time::time_duration,
 1> frac_of_second=0x03e8,
 1>
 TimeDuration=boost::date_time::subsecond_duration<boost::posix_time::time_duration,0x03e8>
 1> ]
 ...
 thread_data.hpp(172): warning C4244: 'argument' : conversion from
 '__int64' to 'long', possible loss of data

 Thanks!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4327#comment:9>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC