Boost C++ Libraries: Ticket #12104: windows - Visual Studio 2015 Update 2 RC gives out warning C4191 in thread_primitive.hpp https://svn.boost.org/trac10/ticket/12104 <pre class="wiki">thread/win32/thread_primitives.hpp(312): warning C4191: 'type cast': unsafe conversion from 'boost::detail::win32::farproc_t' to 'boost::detail::win32::detail::gettickcount64_t' </pre><p> Calling this function through the result pointer may cause your program to fail </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12104 Trac 1.4.3 kline.christopher@… Mon, 04 Apr 2016 15:08:10 GMT <link>https://svn.boost.org/trac10/ticket/12104#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12104#comment:1</guid> <description> <p> I am able to reproduce this as well, when doing </p> <p> #include &lt;boost/thread/mutex.hpp&gt; </p> <p> within a .cpp that uses boost::lock_guard&lt;boost::mutex&gt; </p> <p> under Visual Studio 2015 Update 2 RTM </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 08 Aug 2016 22:50:11 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/12104#comment:2 https://svn.boost.org/trac10/ticket/12104#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Mon, 08 Aug 2016 23:20:03 GMT <link>https://svn.boost.org/trac10/ticket/12104#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12104#comment:3</guid> <description> <p> Hi, I don't see how to fix this. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 03 Sep 2016 13:07:25 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/12104#comment:4 https://svn.boost.org/trac10/ticket/12104#comment:4 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/12104?action=diff&amp;version=4">diff</a>) </li> </ul> Ticket chfast@… Mon, 06 Feb 2017 14:25:16 GMT <link>https://svn.boost.org/trac10/ticket/12104#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12104#comment:5</guid> <description> <p> I hit the same bug. </p> <p> The workaround is to try including &lt;boost/thread&gt; before &lt;thread&gt;. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 29 Apr 2017 16:08:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12104#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12104#comment:6</guid> <description> <p> Could you post an example that produce the error? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 29 Apr 2017 16:09:53 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/12104#comment:7 https://svn.boost.org/trac10/ticket/12104#comment:7 <ul> <li><strong>summary</strong> <span class="trac-field-old">Visual Studio 2015 Update 2 RC gives out warning C4191 in thread_primitive.hpp</span> → <span class="trac-field-new">windows - Visual Studio 2015 Update 2 RC gives out warning C4191 in thread_primitive.hpp</span> </li> </ul> Ticket viboes Sat, 16 Sep 2017 16:48:44 GMT <link>https://svn.boost.org/trac10/ticket/12104#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12104#comment:8</guid> <description> <p> This file has changed a lot since Boost.Thread has moved to Boost.<a class="missing wiki">WinApi</a>. </p> <p> Please, let me know if those changes solve the issue and we can close it. </p> </description> <category>Ticket</category> </item> </channel> </rss>