Re: [Boost-bugs] [Boost C++ Libraries] #6219: Apple macros break compile of has_binary_operator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6219: Apple macros break compile of has_binary_operator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-15 11:50:53


#6219: Apple macros break compile of has_binary_operator
---------------------------------+---------------------------
  Reporter: John Gee <j.gee@…> | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+---------------------------

Comment (by anonymous):

 This took me almost two hours to sort out yesterday. Perhaps the addition
 of something like...


 {{{
 #if defined(__MACH__) && defined(__APPLE__) &&
 defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) &&
 __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES
 #warning You will need to define
 ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES to 0 before the
 inclusion of Cocoa headers (perhaps in your prefix header)
 #end if

 }}}

 ...might help lower the impedance here. Or something to that effect. While
 it may be non-trivial to work around this vendor annoyance, mankind does
 possess the technology to at least shorten the path to the workaround.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6219#comment:10>
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:15 UTC