Topic: DISCONTINUING comp.std.c++ (was: Nested Class Definitions Question)
Author: rfg@NCD.COM (Ron Guilmette)
Date: 20 Jan 91 10:20:33 GMT Raw View
In article <DSOUZA.91Jan4201341@optima.cad.mcc.com> dsouza@optima.cad.mcc.com (Desmond Dsouza) writes:
+
+Is it legal to forward declare a class nested in another class?
+I believe the following is illegal in C++? If so, why? It is a
+useful form of modularity.
+
+class PRINTING_SYS {
+ class PRINTER; // Nested class forward declaration
+ class PRINT_QUEUE; // "
+public:
+ spool();
+};
+
+class PRINTING_SYS::PRINTER { ... };
+class PRINTING_SYS::PRINT_QUEUE { ... };
I have now seen numerous messages posted to this newsgroup which did not
belong here, however I have yet to see any response whatsoever to this
very valid question about a significant C++ standards issue.
What's the problem? Is there really such a total disinterest in C++
standards issues by readers of usenet news? Should this newsgroup
be disbanded due to lack of interest?
--
// Ron Guilmette - C++ Entomologist
// Internet: rfg@ncd.com uucp: ...uunet!lupine!rfg
// Motto: If it sticks, force it. If it breaks, it needed replacing anyway.