8 May
2005
8 May
'05
12:54 p.m.
On 2005-05-08 13:28:29 +0100, "Peter Dimov"
template<typename Y> Bridge(Bridge<Y> const & r) : boost::shared_ptr<Y>(r) { }
That's because shared_ptr<Y> is not a base of Bridge<T>, shared_ptr<T> is . Change the templated copy constructor to:
template<typename Y> Bridge(Bridge<Y> const & r) : boost::shared_ptr<T>(r) { }
<red faced> I had to read "spot the changes" your definition three times before I noticed that you had changed my Y with a T. And *that* was it. One thousand thanks, Peter!. -- Do your users a favor: give them Style: http://www.uiwithstyle.org