Re: [Boost-bugs] [Boost C++ Libraries] #7008: boost/serialization/detail/get_data.hpp leaks STD macro

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7008: boost/serialization/detail/get_data.hpp leaks STD macro
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-30 14:11:02


#7008: boost/serialization/detail/get_data.hpp leaks STD macro
------------------------------------------------+--------------------------
  Reporter: Jonathan Jones <jonathan.jones@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component:
   Version: Boost 1.44.0 | serialization
Resolution: invalid | Severity: Problem
                                                | Keywords:
------------------------------------------------+--------------------------

Comment (by jonathan.jones@…):

 Replying to [comment:3 ramey]:
> Sorry I'm not seeing this is the current code which looks like:
>
> {{{
> #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
> #define STD _STLP_STD
> #else
> #define STD std
> #endif
> ...
> #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
> #undef STD
> #endif
> }}}


 What happens if neither __SGI_STL_PORT nor _STLPORT_VERSION are defined?

 The first block #defines STD to "std".
 The second block does not #undefine STD, hence the macro definition for
 STD leaks.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7008#comment:4>
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:19 UTC