Subject: [Boost-bugs] [Boost C++ Libraries] #3193: compiler warnings in VC9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-20 01:01:50
#3193: compiler warnings in VC9
---------------------------------+------------------------------------------
Reporter: kfriddile@⦠| Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: date_time
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
I'm not sure whether to submit this under thread or date_time. Including
boost/thread.hpp under VC9 with warning level 4 produces the warnings
below. Warnings are not allowed on my project, and rather than wrapping
every include of boost/thread.hpp with a #pragma directive, I'd rather
these warnings just be suppressed in the code that's causing them.
2>C:\Documents and Settings\Administrator\My
Documents\Development\development\third_party\boost\1_39_0\boost/date_time/microsec_time_clock.hpp(103)
: warning C4244: 'argument' : conversion from 'int' to 'unsigned short',
possible loss of data
2> C:\Documents and Settings\Administrator\My
Documents\Development\development\third_party\boost\1_39_0\boost/date_time/microsec_time_clock.hpp(81)
: while compiling class template member function 'boost::posix_time::ptime
boost::date_time::microsec_clock<time_type>::create_time(boost::date_time::microsec_clock<time_type>::time_converter)'
2> with
2> [
2> time_type=boost::posix_time::ptime
2> ]
2> C:\Documents and Settings\Administrator\My
Documents\Development\development\third_party\boost\1_39_0\boost/thread/thread_time.hpp(20)
: see reference to class template instantiation
'boost::date_time::microsec_clock<time_type>' being compiled
2> with
2> [
2> time_type=boost::posix_time::ptime
2> ]
2>C:\Documents and Settings\Administrator\My
Documents\Development\development\third_party\boost\1_39_0\boost/date_time/microsec_time_clock.hpp(103)
: warning C4244: 'argument' : conversion from 'int' to 'unsigned short',
possible loss of data
2>C:\Documents and Settings\Administrator\My
Documents\Development\development\third_party\boost\1_39_0\boost/date_time/microsec_time_clock.hpp(103)
: warning C4244: 'argument' : conversion from 'int' to 'unsigned short',
possible loss of data
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3193> 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:00 UTC