Re: [Boost-bugs] [Boost C++ Libraries] #6843: [Intel C++] Compile Errors with '#include <atomic>'

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6843: [Intel C++] Compile Errors with '#include <atomic>'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-04 03:46:54


#6843: [Intel C++] Compile Errors with '#include <atomic>'
--------------------------------------------+-------------------------------
  Reporter: raptorfactor@… | Owner: viboes
      Type: Patches | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+-------------------------------
Changes (by viboes):

  * owner: pdimov => viboes
  * status: new => assigned
  * component: smart_ptr => thread

Comment:

 An alternative could be to use a file that does the undef of all the
 concerned macros and another that does the redef.

 {{{
 #include <boost/detail/atomic/undef_macros.hpp>
 if(!atomic_load(&future_))
 {
   future_ptr blank;
   atomic_compare_exchange(&future_,&blank,future_ptr(new
 detail::future_object<R>));
 }
 #include <boost/detail/atomic/redef_macros.hpp>
 }}}

 This has the advantage to have less noise. The same kind of patch can be
 applied to #6842

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6843#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC