[Boost-bugs] [Boost C++ Libraries] #13058: errors.hpp in Boost Test requires warning C4946 to be off

Subject: [Boost-bugs] [Boost C++ Libraries] #13058: errors.hpp in Boost Test requires warning C4946 to be off
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-08 08:02:30


#13058: errors.hpp in Boost Test requires warning C4946 to be off
------------------------------+---------------------
 Reporter: anonymous | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.64.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Hi all,
 when compiling the Boost Test library with MSVC 2015 and warning C4946
 (reinterpret_cast between related types) set as an error, the build fails.
 The specific_param_error class uses reinterpret_cast in its operator
 functions (lines 89 and 99 in errors.hpp).

 I am aware that this warning is off by default but at least
 suppress_warnings.hpp should list this warning. Also, a comment in the
 source why a reinterpret_cast was necessary in the first place, would be
 helpful.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/13058>
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-06-08 08:06:43 UTC