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,710 of 33,346   
   John G Harris to All   
   Re: outer_class type trait?   
   01 Dec 11 17:08:25   
   
   2f0348ef   
   From: news0@nospam.demon.co.uk   
      
   On Wed, 30 Nov 2011 at 12:48:27, in comp.lang.c++.moderated, kispaljr   
   wrote:   
   >Is it possible to write a type trait template that can be used to get   
   >the outer class of a nested class/enum?   
   >I am thinking of something like this:   
   >   
   >struct outer { struct inner {}; };   
        
      
   To go back one step, how often would you expect the outer class to have   
   a different name?   
      
     John   
   --   
   John Harris   
      
      
         [ 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