On 12/02/2015 08:19 PM, Dimitry Sibiryakov wrote:
>     Hello, All.
>
>     YHelper calls this->addRef() in constructor. But if the rest of the 
> constructor throw
> anything, destructor is called automatically and die on assertion
> fb_assert(refCounter.value() == 0).
>     Is it a design flaw?
>

Yes, and looks like assert() did it best to help find it.


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to