home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / bug / 2074 < prev    next >
Encoding:
Text File  |  1992-12-22  |  724 b   |  33 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!ds20.dmi.stevens-tech.edu!dov
  3. From: dov@ds20.dmi.stevens-tech.edu (Dov Kruger)
  4. Subject: Your template bug
  5. Message-ID: <9212221651.AA00560@ds20.dmi.stevens-tech.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: <9211060835.AA01779@cygnus.com>
  9. Distribution: gnu
  10. Date: Tue, 22 Dec 1992 06:51:50 GMT
  11. Approved: bug-g++@prep.ai.mit.edu
  12. Lines: 19
  13.  
  14. As of 2.3.1, nested templates as per my example were still not working,
  15. although there may be another way to get the compiler to accept it.
  16.  
  17. > template <class T> class A {
  18. > public:
  19. >   T* _data;
  20. >   class Iter {
  21. >     T* _data;
  22. >   };
  23. > };
  24.  
  25.  
  26. > main()
  27. > {
  28. >   A<int> x;
  29. >   A<int>::Iter y;
  30. > }
  31.  
  32.  
  33.