[Boost-bugs] [Boost C++ Libraries] #11887: BOOST_TEST(3u == (std::max)(0u, 3u)) fails

Subject: [Boost-bugs] [Boost C++ Libraries] #11887: BOOST_TEST(3u == (std::max)(0u, 3u)) fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-05 17:45:36


#11887: BOOST_TEST(3u == (std::max)(0u, 3u)) fails
------------------------------+---------------------
 Reporter: Benedek Thaler | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Given the following program:

 {{{
 #include <algorithm>

 #define BOOST_TEST_MODULE sandbox
 #include <boost/test/included/unit_test.hpp>

 BOOST_AUTO_TEST_CASE(sandbox)
 {
   BOOST_TEST(3u == ((std::max)(0u, 3u)));
 }
 }}}

 The check fails with:

 {{{
 check 3u == ((std::max)(0u, 3u)) has failed [3 != 7095312]
 }}}

 (The large number on the right hand side is not specific, depends on the
 program)

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