>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> I belive that I was wrong with that statement. Are now safe as
Lars> well, well, because we use the layout names when switching
Lars> classes.

OK, if you say so.

Lars> | This is getting more interesting. Do you plan to do it?

Lars> This would only be a failsafe check, it should never trigger.

An assert?

Lars> True, but bald pointers are never safe. One reason is that you
Lars> can never know if the object is still there. One other option is
Lars> to store a weak_ptr in the layouts.

Lars> A weak_ptr is a companion to shared_ptr. when the shared_ptr is
Lars> deleted the pointer insed the weak_ptr is set to NULL.

I did not know these ones. 

JMarc

Reply via email to