Boost C++ Libraries: Ticket #13373: Warning in Boost.Log or Boost.DateTime with VS2017 https://svn.boost.org/trac10/ticket/13373 <p> I'm getting the following compiler warning while compiling my code with VS2017 on a Windows 7 machine: </p> <pre class="wiki">C:\Users\&lt;...&gt;\boost-1_65_1\boost/log/support/date_time.hpp(66): warning C4244: '=': conversion from '__int64' to 'uint32_t', possible loss of data ... C:\Users\&lt;...&gt;\boost-1_65_1\boost/log/support/date_time.hpp(67): warning C4244: '=': conversion from '__int64' to 'uint32_t', possible loss of data C:\Users\&lt;...&gt;\boost-1_65_1\boost/log/support/date_time.hpp(68): warning C4244: '=': conversion from '__int64' to 'uint32_t', possible loss of data </pre><p> I'm using a simple console log (boost::log::add_console_log(std::clog)) wich a formatter created like this: </p> <pre class="wiki">namespace expr = boost::log::expressions; auto fmtTimeStamp = expr::format_date_time&lt;boost::posix_time::ptime&gt;("TimeStamp", %Y-%m-%d %H:%M:%S.%f"); boost::log::formatter logFmt = expr::format("[%1%] [%2%] {%3%} &lt;%4%&gt; %5%") % fmtTimeStamp % expr::attr&lt;my_severity_level_type&gt;("Severity") % expr::attr&lt;std::string&gt;("ThreadName").or_default(std::string("?")) % expr::attr&lt;std::string&gt;("Channel").or_default(std::string("?")) % expr::message; </pre><p> Is there anything I could do about? Or is it something that should be fixed within Boost? I'd like to have warning-free code wherever possible, of course. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13373 Trac 1.4.3 John Maddock Thu, 10 May 2018 12:02:46 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13373#comment:1 https://svn.boost.org/trac10/ticket/13373#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Andrey Semashev</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">log</span> </li> </ul> Ticket Andrey Semashev Thu, 10 May 2018 12:23:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13373#comment:2 https://svn.boost.org/trac10/ticket/13373#comment:2 <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">fixed</span> </li> </ul> <p> I believe, this has been fixed in <a class="ext-link" href="https://github.com/boostorg/log/commit/0b4ce57edc6b4f6618349a507d277c09d7f7b675"><span class="icon">​</span>https://github.com/boostorg/log/commit/0b4ce57edc6b4f6618349a507d277c09d7f7b675</a>, released in Boost 1.66. </p> Ticket