<div dir="ltr"><br><div class="gmail_extra"><span class=""><div> </div></span> | Well as Cyrille was saying it has to be fixed making a check, but since there's already a copy constructor for weak -> shared, shouldn't we use that and just put the check before referencing (and if the weak pointer is invalid setting the shared pointer to NULL)?<br><br>Yep, the copy c-tor is a good place.<br><br clear="all"><span class=""></span><br><br>-- <br><div class="gmail_signature">Dmitry Kazakov</div>
</div></div>