Subject: [Boost-bugs] [Boost C++ Libraries] #6740: small fix for boost/config/compiler/clang.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-28 20:39:11
#6740: small fix for boost/config/compiler/clang.hpp
-------------------------------------+--------------------------------------
Reporter: sven-boost@⦠| Owner: johnmaddock
Type: Patches | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.49.0 | Severity: Problem
Keywords: exceptions config clang |
-------------------------------------+--------------------------------------
Here's a small patch for boost/config/compiler/clang.hpp that fixes a
redefinition error when compiling with clang and -DBOOST_NO_EXCEPTIONS
{{{#!diff
--- boost/config/compiler/clang.hpp~ 2012-03-28 22:01:00.000000000
+0200
+++ boost/config/compiler/clang.hpp 2012-03-28 22:17:15.000000000
+0200
@@ -8,8 +8,7 @@
// Clang compiler setup.
-#if __has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
-#else
+#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
# define BOOST_NO_EXCEPTIONS
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6740> 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:09 UTC