Boost C++ Libraries: Ticket #6936: Warning 4244 in posix_time_zone.hpp https://svn.boost.org/trac10/ticket/6936 <p> The warnings: </p> <pre class="wiki">C:\Dev\Include\boost/date_time/local_time/posix_time_zone.hpp(433) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data 1&gt; C:\Dev\Include\boost/date_time/local_time/posix_time_zone.hpp(414) : while compiling class template member function 'void boost::local_time::posix_time_zone_base&lt;CharT&gt;::julian_no_leap(const std::basic_string&lt;_Elem,_Traits,_Ax&gt; &amp;,const std::basic_string&lt;_Elem,_Traits,_Ax&gt; &amp;)' 1&gt; with 1&gt; [ 1&gt; CharT=char, 1&gt; _Elem=char, 1&gt; _Traits=std::char_traits&lt;char&gt;, 1&gt; _Ax=std::allocator&lt;char&gt; 1&gt; ] 1&gt; .\MYFILE.cpp(NN) : see reference to class template instantiation 'boost::local_time::posix_time_zone_base&lt;CharT&gt;' being compiled 1&gt; with 1&gt; [ 1&gt; CharT=char 1&gt; ] 1&gt;C:\Dev\Include\boost/date_time/local_time/posix_time_zone.hpp(435) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data </pre><p> The line in my code that spawns this: </p> <pre class="wiki">time_zone_ptr timezone; string tz("UTC0"); // may be changed //... timezone.reset(new posix_time_zone(tz.c_str())); // warnings from here </pre><p> The warnings occur within body of <code>julian_no_leap()</code> at the instantiation of <code>new partial_date_dst_rule</code>, specifically, one each for the start_rule and end_rule constructors. </p> <p> MSVC 2008, compiling on and for Windows 7. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6936 Trac 1.4.3 viboes Mon, 28 May 2012 17:13:06 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6936#comment:1 https://svn.boost.org/trac10/ticket/6936#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">az_sw_dude</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">date_time</span> </li> </ul> Ticket James E. King, III Wed, 27 Dec 2017 15:41:59 GMT owner changed https://svn.boost.org/trac10/ticket/6936#comment:2 https://svn.boost.org/trac10/ticket/6936#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">James E. King, III</span> </li> </ul> Ticket James E. King, III Wed, 27 Dec 2017 15:42:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6936#comment:3 https://svn.boost.org/trac10/ticket/6936#comment:3 <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">worksforme</span> </li> </ul> <p> Cannot reproduce this in boost 1.66.0 with msvc-14.1 </p> Ticket