|
Boost : |
Subject: [boost] [test] BOOST_TEST macro and std::max
From: Benedek Thaler (thalerbenedek_at_[hidden])
Date: 2016-01-04 18:35:47
Hi,
I'd expect the following cheks to pass:
BOOST_TEST(3u == (std::max)(0u, 3u));
BOOST_TEST(3u == ((std::max)(0u, 3u)));
But both fails with:
check 3u == ((std::max)(0u, 3u)) has failed [3 != 7095312]
Did I miss something regarding BOOST_TEST usage?
Platform: Linux, GCC 5.3, Boost 1.60
Thanks,
Benedek
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk