Boost logo

Boost Users :

From: Mikko Vainio (mikko.vainio_at_[hidden])
Date: 2007-04-27 11:02:29


Could someone fix line 31 in serialization/weak_ptr.hpp to say
const boost::shared_ptr<T> sp = t.lock();
as it does in the HEAD version.

The line is now
const boost::shared_ptr<T> sp(t);
which will cause assertion failure with empty weak_ptr. Being empty is a
perfectly valid state for a weak_ptr, and should be serializable.

Cheers,
Mikko


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