home bbs files messages ]

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,200 of 33,346   
   Martin B. to Gene Bushuyev   
   Re: Initialization and trivial construct   
   26 Apr 12 14:16:30   
   
   69fef9c6   
   From: 0xCDCDCDCD@gmx.at   
      
   On 26.04.2012 02:07, Gene Bushuyev wrote:   
   > On Apr 25, 11:31 am, Miles Bader  wrote:   
   >> Gene Bushuyev  writes:   
   >> [E.g., consider a class which takes a string value as a constructor   
   >> argument, makes a filename from it, reads some parameter values from a   
   >> file with that name, and stores the parameter values as data members   
   >> in the new object.  All subsequent operations just use the parameters.]   
   >>   
   >   
   > Perhaps the object constructor is not designed correctly or a   
   > constructor is missing in that case, as there should be a constructor   
   > taking a stream.   
   >   
      
   But prior to C++11 an additional ctor wouldn't have helped, since we   
   didn't have delegating ctors?   
      
   cheers,   
   Martin   
      
   --   
   Good C++ code is better than good C code, but   
   bad C++ can be much, much worse than bad C code.   
      
      
         [ 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