home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ulowell!m2c!bu.edu!olivea!hal.com!darkstar.UCSC.EDU!daniel
- From: daniel@cse.ucsc.edu (Daniel R. Edelson)
- Newsgroups: comp.std.c++
- Subject: Unitialized dynamic reference
- Message-ID: <1dessbINNn1b@darkstar.UCSC.EDU>
- Date: 6 Nov 92 22:50:51 GMT
- Organization: University of California, Santa Cruz (CE/CIS Boards)
- Lines: 16
- NNTP-Posting-Host: oak.ucsc.edu
-
-
- The draft standard has the following to say about references:
-
- ``The declaraion of a reference must contain an initializer except
- when the declaration contains an explicit extern specifier, is a
- class member, declaration within a class declaration, or is the
- declaration of an argument or return type.''
-
- So, given that, is the following illegal?
-
- new (int&)
-
- All the compilers I tried permitted it.
-
- Thanks,
- Daniel Edelson
-