Topic: forward enum declaration


Author: daniel@cse.ucsc.edu (Daniel R. Edelson)
Date: 23 Oct 1992 00:58:09 GMT
Raw View
Is the size of a forward declared enumeration type know?

size_t foo(void)
{
 return sizeof(enum E);
}

Is this valid? Incidently, can someone please
point me to the sentence in the draft standard that
permits forward declarations of enums? I've found it
for classes and unions, but not for enums.

Thank you

--
---
Daniel Edelson                 |  New motto, copy-collection for C++ is out:
daniel@cis.ucsc.edu, or        |    ``Don't dangle, recycle, and don't
uunet!ucscc!terra!daniel       |      make me sweep up after you.''