Boost logo

Boost :

Subject: Re: [boost] [test] BOOST_TEST macro and std::max
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2016-01-05 14:27:53


Benedek Thaler <thalerbenedek <at> gmail.com> writes:

>
> 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]

I can't reproduce this neither on Linux nor Windows. What configuration do
you use?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk