On 15/06/2020 18:55, Dimitry Sibiryakov wrote: > 15.06.2020 23:37, Adriano dos Santos Fernandes wrote: >> AFAIK unique_ptr does not allocate memory. > > Yes, but it deallocates. Imagine mistakenly called delete on a pointer > got from pool. That's my concern. > >
You mean: imagine if the normal thing happen? :) Every Firebird pointer is deleted with global delete. Unless exception happens in constructor, then poolable delete is called, which does the same thing. unique_ptr also correctly deallocated arrays without explicit Deleter like AutoPtr needs. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel