Boost C++ Libraries: Ticket #6842: [Intel C++] Compile Errors with '#include <atomic>' https://svn.boost.org/trac10/ticket/6842 <p> Under Intel C++ (12.1) on Windows, in C++0x mode, the following fails to compile: </p> <p> #include &lt;atomic&gt; #include &lt;boost/shared_ptr.hpp&gt; int main() { } </p> <p> The problem has been discovered previously: <a class="ext-link" href="http://software.intel.com/en-us/forums/showpost.php?p=160114"><span class="icon">​</span>http://software.intel.com/en-us/forums/showpost.php?p=160114</a> </p> <p> However there seems to be no forthcoming fix on Intel's part. </p> <p> Attached is a patch to fix this problem. It will probably require a bit of extra wrapping though (to check for Intel version and C++0x mode). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6842 Trac 1.4.3 Joshua Boyce <raptorfactor@…> Sat, 28 Apr 2012 16:56:39 GMT attachment set https://svn.boost.org/trac10/ticket/6842 https://svn.boost.org/trac10/ticket/6842 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-shared_ptr-intel-fix-20120421-0447.patch</span> </li> </ul> <p> Fist patch. Massive hack. Needs improvement. </p> Ticket Joshua Boyce <raptorfactor@…> Sat, 28 Apr 2012 16:58:57 GMT cc set https://svn.boost.org/trac10/ticket/6842#comment:1 https://svn.boost.org/trac10/ticket/6842#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">raptorfactor@…</span> added </li> </ul> Ticket viboes Sun, 14 Apr 2013 21:27:17 GMT <link>https://svn.boost.org/trac10/ticket/6842#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6842#comment:2</guid> <description> <p> See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6843" title="#6843: Patches: [Intel C++] Compile Errors with '#include &lt;atomic&gt;' (closed: fixed)">#6843</a>. </p> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/83903" title="Detail: Added undef/redef atomic intel macros #6842/#6843.">[83903]</a> including new files. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 11 Dec 2013 17:58:03 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6842#comment:3 https://svn.boost.org/trac10/ticket/6842#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">wontfix</span> </li> </ul> <p> This problem should be avoidable by #define BOOST_SP_NO_ATOMIC_ACCESS. </p> Ticket