[Boost-bugs] [Boost C++ Libraries] #11696: variant& operator=(variant&& rhs) never noexcept under clang

Subject: [Boost-bugs] [Boost C++ Libraries] #11696: variant& operator=(variant&& rhs) never noexcept under clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-30 10:51:38


#11696: variant& operator=(variant&& rhs) never noexcept under clang
---------------------------------+------------------------------
 Reporter: Tobias Reh <treh@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
 Severity: Problem | Keywords:
---------------------------------+------------------------------
 The noexcept specification for variant's move assignment operator is
 compiled only conditionally under the following preprocessor switch:

 {{{#!c++
 #if !defined(__GNUC__) || (__GNUC__ != 4) || (__GNUC_MINOR__ > 6)
 }}}

 clang 3.6 defines the gnu macros as if it were gcc 4.2.
 Therefore the above switch evaluates to false and the noexcept
 specification is not visible under clang.

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