|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-08-13 12:01:54
At 09:57 AM 8/13/2002, Peter Dimov wrote:
>shared_ptr_test.cpp fails at line 191, which is
>
>BOOST_TEST(p);
>
>where p is a shared_ptr<>. Since p can be used in boolean contexts such
as
>if(p), this worked with the old implementation of BOOST_TEST. I can "fix"
>the test to read
>
>BOOST_TEST(p? true: false);
>
>but is this the right thing to do?
I couldn't find the docs for BOOST_TEST, but similar forms are documented
as requiring a "predicate". So I'd think anything convertible to bool was
valid, and you shouldn't have to change your code.
Gennadiy?
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk