home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!debbie!johnh
- From: johnh@tt.com (John Hasselkus)
- Subject: static data members of private types impossible?
- Message-ID: <1992Nov12.151014.10610@debbie>
- Sender: news@debbie
- Nntp-Posting-Host: debbie
- Organization: Telecommunications Techniques Corporation, Germantown MD
- Date: Thu, 12 Nov 1992 15:10:14 GMT
- Lines: 17
-
- How do you define a static data member of a private type? For example:
-
- class A {
- private:
- enum FOO {
- FOO_1,
- FOO_2
- };
- static FOO foo;
- };
-
- A::FOO A:foo; // <- Compiler won't let you use private types out here
-
- Is this impossible? Thanks for any inputs.
- --
- John Hasselkus
- johnh@tt.com
-