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 31,620 of 33,346   
   red floyd to Frank Bergemann   
   Re: problem with function calling tracke   
   04 Nov 11 22:09:54   
   
   21adaedc   
   From: no.spam.here@its.invalid   
      
   On 11/4/2011 4:39 PM, Frank Bergemann wrote:   
   > It works (somehow).   
   > But i have still a problem.   
   > I can't disable copy c'tor for class ArgCommon and the classes derived   
   > from it   
   > (prepared but disabled in code below).   
   > However, actually the object to track (function argument) is not   
   > copied - already know.   
   > So it might not be needed to disable copy c'tor for ArgCommon and   
   > derived classes(?!)   
   >   
   > Can you help me, please?   
   > - many thanks!   
   >   
      
   For C++11, use the "= delete" notation, you have commented out.   
      
   For C++03, declare the copy ctor private, and do not provide an   
   implementation.  This is the standard method for removing a   
   copy ctor.   
      
   Please be careful, you should obey the rule of 3, and probably   
   disable the assignment operator as well.   
      
      
   --   
         [ 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