On 02.09.2019 13:10, Dimitry Sibiryakov wrote:
02.09.2019 12:06, Alex Peshkoff via Firebird-devel wrote:
Certainly it's much, much better to define rules of object deletion at construction time than to delete something explicitly (here and there) when object is going to be destroyed.

  That's the job for smart pointers and containers.



Don't gorget - 'classic' smart pointers, containers, etc. do NOT work when object is deleted by pool.
Finalizer is replacement for them working in that case.




Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to