home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!spool.mu.edu!agate!tfs.com!tfs.com!eric
- From: eric@tfs.com (Eric Smith)
- Subject: Re: initialization HELP structure of classes
- Message-ID: <1992Sep8.001333.897@tfs.com>
- Organization: TFS
- References: <g89s9112.2.715860452@giraffe.ru.ac.za>
- Distribution: global
- Date: Tue, 8 Sep 1992 00:13:33 GMT
- Lines: 8
-
- In article <g89s9112.2.715860452@giraffe.ru.ac.za> g89s9112@giraffe.ru.ac.za (MR D STURZEBECHER) writes:
- >ERROR : Objects of type 'A_DATA' cannot be initialized with { }
-
- You can't initialize normal classes that way, only "aggregates".
- For normal classes, ou have to use class constructors.
-
- "Aggregates" are C structs, etc., used mainly for compatibility with C.
- For an exact definition, see page 151 of the ARM.
-