Scope of temporaries as function arguments
    Ali Çehreli 
    acehreli at yahoo.com
       
    Fri Jun 28 10:25:01 PDT 2013
    
    
  
On 06/28/2013 10:11 AM, Steven Schveighoffer wrote:
 > On Fri, 28 Jun 2013 12:44:02 -0400, Ali Çehreli <acehreli at yahoo.com> 
wrote:
 >> 
http://www.boost.org/doc/libs/1_53_0/libs/smart_ptr/shared_ptr.htm#BestPractices 
 >>
 >
 > Thank you, I didn't know this.
Even though this issue is covered in Herb Sutter's Exceptional C++ book, 
which I had read with great interest, I re-learned it last year when a 
colleague showed that link to me.
I have always considered C++ a language where mere-mortals like myself 
must read lots and lots of books to advance (or to write any decent 
code). This thread makes me think that D is following in C++'s steps. I 
am too normal to figure out these corner cases myself. :-/
Ali
    
    
More information about the Digitalmars-d-learn
mailing list