Re: [Boost-bugs] [Boost C++ Libraries] #4191: c++ library using regex included in objective-c needs rename of variable id

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4191: c++ library using regex included in objective-c needs rename of variable id
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-29 23:41:40


#4191: c++ library using regex included in objective-c needs rename of variable id
--------------------------------+-------------------------------------------
  Reporter: lydisworld@… | Owner: chris_kohlhoff
      Type: Patches | Status: reopened
 Milestone: Boost 1.43.0 | Component: asio
   Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by chris_kohlhoff):

 Replying to [comment:7 anonymous]:
> Comments for r66143[[BR]]
>
> Protocol and id are not macros, [[BR]]
> so they should be #undef'ed in detail/pop_options.hpp:
>
> {{{
>
> # if defined(__OBJC__)
> # undef Protocol
> # pragma pop_macro("Protocol")
> # undef id
> # pragma pop_macro("id")
> # endif
>
> }}}

 AFAIK, they are macros as far as pop_macro is concerned. If you see a
 problem then please provide a test case.

 The following source file "test.mm":

 {{{
 #include <boost/asio.hpp>
 #ifdef Protocol
 # error Protocol is defined
 #endif
 #ifdef id
 # error id is defined
 #endif
 }}}

 compiles without error or warning using gcc 4.4.5.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4191#comment:9>
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:04 UTC