Borland C++ 5.5.1 fails the following test:
struct X
{
X(): next() {}
boost::shared_ptr<X> next;
};
void test()
{
boost::shared_ptr<X> p(new X);
p->next = boost::shared_ptr<X>(new X);
BOOST_TEST(!p->next->next);
p = p->next;
BOOST_TEST(!p->next); // here
}
The other test cases (and there are lots!) pass, and the above passes with
my other compilers. Any insights are appreciated.
--
Peter Dimov
http://www.pdimov.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost