Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6740 closed Patches (fixed)

small fix for boost/config/compiler/clang.hpp

Reported by: sven-boost@… Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.49.0 Severity: Problem
Keywords: exceptions config clang Cc: sven-boost@…

Description

Here's a small patch for boost/config/compiler/clang.hpp that fixes a redefinition error when compiling with clang and -DBOOST_NO_EXCEPTIONS

  • boost/config/compiler/clang.hpp

    old new  
    88
    99// Clang compiler setup.
    1010
    11 #if __has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
    12 #else
     11#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
    1312#  define BOOST_NO_EXCEPTIONS
    1413#endif

Change History (3)

comment:1 by Michel Morin, 11 years ago

This seems a copy-and-paste error in the fix for #4059 (should not redefine BOOST_NO_EXCEPTIONS). John, I'm going to apply the patch.

comment:2 by Michel Morin, 11 years ago

Resolution: fixed
Status: newclosed

(In [77643]) Avoid redefinition of BOOST_NO_EXCEPTIONS; fixes #6740

comment:3 by Michel Morin, 11 years ago

Thank you for the report and the fix!

Note: See TracTickets for help on using tickets.