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,027 of 33,346   
   Timothy Madden to All   
   Is there a typedef or a using-declaratio   
   19 Mar 12 13:09:10   
   
   From: terminatorul@gmail.com   
      
   Hello   
      
   In many places in my class template I have to use a nested template from   
   a base class, with different template parameters. Since the base class   
   is dependent, I end up with a rather long construct to use throughout my   
   class:   
   	base_class_name:: template templ_name    
      
   Is there a way like a typedef or a using-declaration to redeclare/import   
   the template name into my class ?   
      
   The syntax for a using-declaration does not allow to name a template as   
   the entity. The entity name must end with either a template-id, either a   
   simple identifier directly, but not with   
         ... :: template _templ_name_   
   This makes sense since there would then be no way to know if the named   
   template is a function template or a class template.   
      
   Similarly, a typdef declaration may only name a type, but not a template.   
      
   Thank you,   
   Timothy Madden   
      
      
   --   
         [ 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