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,704 of 33,346   
   DeMarcus to All   
   Re: Why isn't class a subset of class...   
   05 Dec 12 00:03:35   
   
   From: use_my_alias_here_at_hotmail_com@tellus.orb.dotsrc.org   
      
   On 2012-12-03 03:01, Öö Tiib wrote:   
   > On Sunday, 2 December 2012 15:14:29 UTC+2, DeMarcus  wrote:   
   >> Footnote: I think that template is also a subset of templates   
   >> with default arguments like template> allocator>, therefore TakeTemplate should work in my   
   >> opinion.   
   >   
   > Not all template parameters of std::vector have default arguments.   
   > Therefore to have a type you have to write 'std::vector',   
   > where T has to be a type (that meets the requirements to vector's   
   > elements). Plain 'std::vector' is not type and you can not use   
   > it at places where types should be used.   
      
   Yes I know, but it takes a template so it should be able to take   
   std::vector, right?   
      
   template class T>   
   class TakeTemplate   
   {   
   };   
      
      
   Regards,   
   Daniel   
      
      
   --   
         [ 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