Boost logo

Boost :

From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2002-08-20 11:01:59


> Is this that bool conversion issue that came up before? What was the
> decision on a fix?

I changed the tuple code to

    BOOST_TEST(bool(is >> ti));

and no error anymore.
Hence, it must be the conversion issue with BOOST_TEST.
A stream is convertible to a bool, but BOOST_TEST doesn't recognize that.

Jaakko

>
> --Beman
>
> Error E2285 c:\boost\site\libs/tuple/test\io_test.cpp 97: Could not find a
> match for 'test_toolbox::detail::test_and_continue_impl(istream,const
> test_toolbox::detail::wrapstrstream,char *,int)' in function
> test_main(int,char * *)
>
> useThisIStringStream is("(100 200 300)");
>
> tuple<int, int, int> ti;
> BOOST_TEST(is >> ti); // this is line 97
> BOOST_TEST(ti == make_tuple(100, 200, 300));
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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