Boost logo

Boost :

Subject: Re: [boost] [test] BOOST_TEST macro and std::max
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2016-01-05 08:11:09


Le 05/01/16 00:35, Benedek Thaler a écrit :
> 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
>

Thanks for the report, would you please open a ticket on trac?

Best,
Raffi


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