Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-05-22 18:04:18


Clarke, Aaron:
> Hello,
>
> I'm trying to update my codes Boost from 1.34.1 to 1.35 and I'm getting a
> test case failure dealing with weak_ptr. I have an std::vector of
> weak_ptr's and I've verified that the weak_ptr that get put in are valid.
> Then later I look through the whole vector and lock the weak_ptr's to call
> a virtual method on them. The weak_ptr says it's (!expired) and the
> (shared_ptr == true). But the vtable is all messed up and the
> shared_ptr's px is not a pointer to something I made the weak_ptr from.
>
> Soo... is there any idea about why the weak_ptr from 1.35 would do this
> when the weak_ptr from 1.34.1 works fine? The headers look remarkably the
> same so I have no idea.

Odd. Which compiler, platform? Does this happen in a small test case that
you can post?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net