[Boost-bugs] [Boost C++ Libraries] #9474: boost/type_traits/has_new_operator.hpp causes compilation errors when macro "new" is defined

Subject: [Boost-bugs] [Boost C++ Libraries] #9474: boost/type_traits/has_new_operator.hpp causes compilation errors when macro "new" is defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-05 15:31:21


#9474: boost/type_traits/has_new_operator.hpp causes compilation errors when macro
"new" is defined
-------------------------------+-------------------------
 Reporter: myasnikovmaksim@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-------------------------------+-------------------------
 It is a recommended practice to #define new DEBUG_NEW in order to detect
 memory leaks in MFC projects, but it causes compilation errors in
 boost/type_traits/has_new_operator.hpp due to undesirable macro
 substitution.[[BR]]
 I suggest to hide this macro at the beginning of the file and restore it
 at the end. Attached patch is suitable only for Visual C++ compiler.[[BR]]
 Best regards, Maksim.

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