[Boost-bugs] [Boost C++ Libraries] #12713: VS2015 : fatal error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure

Subject: [Boost-bugs] [Boost C++ Libraries] #12713: VS2015 : fatal error C1189: #error : <atomic> is not supported when compiling with /clr or /clr:pure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-27 15:34:59


#12713: VS2015 : fatal error C1189: #error : <atomic> is not supported when
compiling with /clr or /clr:pure
----------------------------------------+-----------------------
 Reporter: Dima Rusyy <dima.ru.com@…> | Owner: pdimov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------
 The code in boost/smart_ptr/detail/sp_counted_base.hpp :

 {{{
 #elif !defined( BOOST_NO_CXX11_HDR_ATOMIC )
 # include <boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp>
 }}}

 doesn't look correct as it causes <atomic> header to be included.
 That leads to compilation error in /clr mode.

 Includes files hierarchy :

 {{{
 1> Note: including file:
 ..\boost\boost_1_63_0\boost/smart_ptr/detail/shared_count.hpp
 1> Note: including file:
 ..\boost\boost_1_63_0\boost/smart_ptr/bad_weak_ptr.hpp
 1> Note: including file:
 ..\boost\boost_1_63_0\boost/smart_ptr/detail/sp_counted_base.hpp
 1> 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> Note: including file:
 ..\boost\boost_1_63_0\boost/detail/sp_typeinfo.hpp
 1> Note: including file:
 ..\boost\boost_1_63_0\boost/core/typeinfo.hpp
 1> Note: including file: D:\Program Files
 (x86)\Microsoft Visual Studio 12.0\VC\include\atomic
 1>D:\Program Files (x86)\Microsoft Visual Studio
 12.0\VC\include\atomic(9): fatal error C1189: #error : <atomic> is not
 supported when compiling with /clr or /clr:pure.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12713>
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:20 UTC