[Boost-bugs] [Boost C++ Libraries] #11221: intrusive/pointer_traits.hpp fails to compile with C++98

Subject: [Boost-bugs] [Boost C++ Libraries] #11221: intrusive/pointer_traits.hpp fails to compile with C++98
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-21 21:12:16


#11221: intrusive/pointer_traits.hpp fails to compile with C++98
-------------------------------------+-------------------------
 Reporter: Marc Mondesir <marcm@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: intrusive
  Version: Boost 1.58.0 | Severity: Showstopper
 Keywords: |
-------------------------------------+-------------------------
 boost/thread.hpp eventually includes boost/intrusive/pointer_traits.hpp.
 This gives compile errors, eg:
 /Source/SmartSound_109/0_SDK/Cross/boost/include/boost/intrusive/pointer_traits.hpp:36:1:
 Use of undeclared identifier 'check'

 The error depends on a compile setting, (Project settings):
 Apple LLVM 6.0 - Language - C++
   C++ Language Dialect
     (set to) C++ 98 [std=c++98]

 This is on Mac OS 10.9 with Xcode 6.2. I attached a sample project that
 fails to compile by simply including boost/thread.hpp in main.mm.

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