Subject: [Boost-bugs] [Boost C++ Libraries] #2765: "warning C4127: conditional expression is constant"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-17 09:26:48
#2765: "warning C4127: conditional expression is constant"
-----------------------------------------------------+----------------------
Reporter: m.champlon_at_[hidden] | Owner: rogeeff
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: test
Version: Boost 1.38.0 | Severity: Problem
Keywords: warning conditional expression constant |
-----------------------------------------------------+----------------------
All BOOST_CHECK_*, BOOST_REQUIRE_*, etc.. macros produce this warning
under msvc8.
A simple fix is to remove the const from the dummy_cond declaration in
test_tools.hpp :
namespace { bool dummy_cond = false; }
Thanks.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2765> 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:49:59 UTC