Opened 13 years ago

Closed 13 years ago

#3193 closed Bugs (duplicate)

compiler warnings in VC9

Reported by: kfriddile@… Owned by: az_sw_dude
Milestone: Boost 1.40.0 Component: date_time
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (1)

comment:1 by anonymous, 13 years ago

Resolution: duplicate
Status: newclosed

Duplicates #2757

Note: See TracTickets for help on using tickets.