Re: [Boost-bugs] [Boost C++ Libraries] #8120: DONT_USE_HAS_NEW_OPERATOR warning with MSVC and Intel compiler

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8120: DONT_USE_HAS_NEW_OPERATOR warning with MSVC and Intel compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-26 15:02:17


#8120: DONT_USE_HAS_NEW_OPERATOR warning with MSVC and Intel compiler
-------------------------------------------+--------------------------------
  Reporter: hamon <re.mamamia@…> | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------+--------------------------------

Comment (by steven_watanabe):

 defined(...) only works at the top level inside #ifdefs. "If the token
 defined is generated as a result of this replacement process ... the
 behavior is undefined" (C++11 16.2) However, using __XXX__ != 0 will also
 generate warnings. I believe that BOOST_WORKAROUND is safe to use.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8120#comment:2>
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:12 UTC