Boost logo

Boost :

From: Rozental, Gennadiy (Gennadiy_at_[hidden])
Date: 2002-08-13 14:50:04


From: "Peter Dimov" <pdimov_at_[hidden]>
> From: "Gennadiy Rozental" <gennadiy_at_[hidden]>
> >
> > "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> > news:011601c242d1$59217c40$1d00a8c0_at_pdimov2...
> > > shared_ptr_test.cpp fails at line 191, which is
> > >
> > > BOOST_TEST(p);
> > At compile time or at runtime?
>
> Compile time, see
>
> Error E2285 c:\boost\site\libs/smart_ptr\shared_ptr_test.cpp 191: Could
not
> find a match for
'boost::test_toolbox::detail::test_and_continue_impl(const
> boost::shared_ptr<X>,const boost::test_toolbox::detail::wrapstrstream,char
> *,int)' in function test_is_nonzero<X>(const boost::shared_ptr<X> &)
>

That is weird. test_and_continue_impl is defined like this:

bool
test_and_continue_impl( bool predicate, wrapstrstream const& message, char
const* file_name, int line_num,
                                    bool add_fail_pass = true,
                                    unit_test_framework::report_level
loglevel = unit_test_framework::report_all_errors );

How come it does not use implicit convertion to bool here? May be the reason
is in 3rd argument that is defined as char const*.
I am passing __FILE__ there. Why borland is looking for char* there?

Does any Borland expert could help?

Gennadiy.


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