Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,877 of 33,346    |
|    =?ISO-8859-1?Q?=D6=F6_Tiib?= to Andy Champ    |
|    Re: fails to call destructor in a linked    |
|    28 Feb 13 11:07:09    |
   
   From: ootiib@hot.ee   
      
   On Thursday, 28 February 2013 09:51:47 UTC+2, Andy Champ wrote:   
   > On 27/02/2013 06:44, Öö Tiib wrote:   
   > > Write the program using 'std::unique_ptr' instead of 'Node*'   
   > > it is far easier and about as quick.   
   >   
   > If he's going to go to STL he ought to use std::list. I assume the   
   > whole point of this it as a training exercise.   
      
   So what? One day he might come here after school asking for job.   
   Chicks of personal department ask me do I need him. I find out   
   that he does not know standard library and can't use smart pointers   
   and answer "No". I told what he should learn for to make it more   
   likely that I answer "Yes".   
      
   I rarely care what people get from those professors who teach   
   linked list from year to year until death takes them. Have you met   
   a real case when a std::list did outperform all other alternatives   
   for a container? I haven't. My experiments trying to construct one   
   have shown that it has tiny advantages in ridiculous edge cases.   
      
      
   --   
    [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
    [ comp.lang.c++.moderated. First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca