08.05.2016 23:52, Adriano dos Santos Fernandes wrote:

> It needs to create and destroy a temporary B.

   You are right.
   But it doesn't make returning by value better, because
a) it guaranteed overhead
b) it is enough to forget to define explicit assignment operator in any 
descendant of 
AutoStorage and compiler-generated bitwise one will replace original pool with 
pool of the 
temporary object.

   As the result, it is better to implement assignment operator on target size 
that 
conversion methods on source side. I.e. instead of writing "a = b.toString();", 
write just 
"a = b;".

-- 
   WBR, SD.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to