22.02.2015 19:11, Adriano dos Santos Fernandes wrote: > A solution must be to pass a parameter to destroy methods specifying if > they should release or not the object.
More dragon poker - more fun. > And of course, all implementations should follow it. > > So with or without smart pointers, use may be more intuitive. Smart pointer used to call Release() method unconditionally. Letting any other method to destroy object before that will lead to crash. -- WBR, SD. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel