Boost C++ Libraries: Ticket #3193: compiler warnings in VC9 https://svn.boost.org/trac10/ticket/3193 <p> 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. </p> <p> 2&gt;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&gt; 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&lt;time_type&gt;::create_time(boost::date_time::microsec_clock&lt;time_type&gt;::time_converter)' 2&gt; with 2&gt; [ 2&gt; time_type=boost::posix_time::ptime 2&gt; ] 2&gt; 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&lt;time_type&gt;' being compiled 2&gt; with 2&gt; [ 2&gt; time_type=boost::posix_time::ptime 2&gt; ] 2&gt;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&gt;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 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3193 Trac 1.4.3 anonymous Sun, 14 Feb 2010 21:25:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3193#comment:1 https://svn.boost.org/trac10/ticket/3193#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2757" title="#2757: Patches: Warning C4244: conversion from 'int' to 'unsigned short' in ... (closed: fixed)">#2757</a> </p> Ticket