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,374 of 33,346   
   cpp4ever to All   
   template member function specialisation    
   24 Jun 11 13:01:22   
   
   From: n2xssvv.g02gfr12930@ntlworld.com   
      
   OK folks, I think this is generally a very bad idea and would create my   
   own container class with a standard container member variable.   
      
   // I think this type of thing is a very bad idea   
   template<>   
   void std::vector::push_back(const MyClass &inp)   
   {   
      // specialised version   
   }   
      
   The next question is, is this still a bad idea for your own template   
   container classes?   
      
   A lot of other questions can arise from this, but I'll leave it at this   
   for now.   
      
   Regards   
      
   cpp4ever   
      
      
   --   
         [ 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