home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!rpi!bu.edu!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.c++
- Subject: Re: zero-length datatype
- Message-ID: <23654@alice.att.com>
- Date: 11 Sep 92 13:50:56 GMT
- References: <1992Sep10.003726.27140@lucid.com> <1992Sep10.181836.9929@cadsun.corp.mot.com>
- Reply-To: ark@alice.UUCP ()
- Distribution: comp
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 10
-
- In article <1992Sep10.181836.9929@cadsun.corp.mot.com> shang@corp.mot.com writes:
-
- > Note that C g++ implements empty struct or class with size of zero.
- > g++ also allows an array with zero number of member with size of zero.
-
- Unfortunately, this violates the ISO C standard, which explicitly says
- that there are no zero-size objects.
- --
- --Andrew Koenig
- ark@europa.att.com
-