Boost C++ Libraries: Ticket #12713: VS2015 : fatal error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure https://svn.boost.org/trac10/ticket/12713 <p> The code in boost/smart_ptr/detail/sp_counted_base.hpp : </p> <pre class="wiki">#elif !defined( BOOST_NO_CXX11_HDR_ATOMIC ) # include &lt;boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp&gt; </pre><p> doesn't look correct as it causes &lt;atomic&gt; header to be included. That leads to compilation error in /clr mode. </p> <p> Includes files hierarchy : </p> <pre class="wiki">1&gt; Note: including file: ..\boost\boost_1_63_0\boost/smart_ptr/detail/shared_count.hpp 1&gt; Note: including file: ..\boost\boost_1_63_0\boost/smart_ptr/bad_weak_ptr.hpp 1&gt; Note: including file: ..\boost\boost_1_63_0\boost/smart_ptr/detail/sp_counted_base.hpp 1&gt; Note: including file: ..\boost\boost_1_63_0\boost/smart_ptr/detail/sp_has_sync.hpp ..\boost\boost_1_63_0\boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp 1&gt; Note: including file: ..\boost\boost_1_63_0\boost/detail/sp_typeinfo.hpp 1&gt; Note: including file: ..\boost\boost_1_63_0\boost/core/typeinfo.hpp 1&gt; Note: including file: D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\atomic 1&gt;D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\atomic(9): fatal error C1189: #error : &lt;atomic&gt; is not supported when compiling with /clr or /clr:pure. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12713 Trac 1.4.3 Peter Dimov Tue, 27 Dec 2016 15:40:23 GMT owner, component changed https://svn.boost.org/trac10/ticket/12713#comment:1 https://svn.boost.org/trac10/ticket/12713#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Peter Dimov</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">smart_ptr</span> → <span class="trac-field-new">config</span> </li> </ul> <p> Thanks for the report. I could work around that on the <a class="missing wiki">SmartPtr</a> side, but it looks more like a Config problem. </p> Ticket John Maddock Tue, 27 Dec 2016 19:35:57 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12713#comment:2 https://svn.boost.org/trac10/ticket/12713#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> Fixed in <a class="ext-link" href="https://github.com/boostorg/config/commit/ab0fa3b3d72d67c4589bca554525057189cf08ae"><span class="icon">​</span>https://github.com/boostorg/config/commit/ab0fa3b3d72d67c4589bca554525057189cf08ae</a>. </p> <p> Note that I had to disable a heck of a lot of stuff... not sure how much of Boost is still working in that mode. </p> Ticket John Maddock Mon, 09 Jan 2017 18:11:40 GMT milestone changed https://svn.boost.org/trac10/ticket/12713#comment:3 https://svn.boost.org/trac10/ticket/12713#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.64.0</span> </li> </ul> Ticket