Article View: comp.std.c++
Article #2187Two standards questions
From: Mathew G Monroe
Date: Sat, 14 Oct 1995 08:52
Date: Sat, 14 Oct 1995 08:52
25 lines
1227 bytes
1227 bytes
First: Under the current draft standard are all const object only given
an internal linkage, unless they have previously been given external
linkage? I ask because I understood this was the case. But, GNU G++
(at least 2.7.0) doesn't strictly follow this. For example,
const char *messages[]={"Fun", "Stuff};
const char fun[]="message";
messages is made external, and fun is internal. This seems wrong to me,
both should be internal.
Second: By the current standard is the complex class a template? I ask
because old versions of GNU g++ and libg++ has complex not as a
template, yet g++ 2.7.0 and libg++ 2.7.0 make it a template.
Thanks,
matt
------
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<4kTmzbC00iVD0Bmn4x@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!news.mindlink.net!agate!agate!MattShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mindlink.net!agate!agate!Matt From: Mathew G Monroe <mmex+@andrew.cmu.edu> Newsgroups: comp.std.c++ Subject: Two standards questions Date: 14 Oct 1995 08:52:23 GMT Organization: <none> Approved: Matt@Austern Message-ID: <4kTmzbC00iVD0Bmn4x@andrew.cmu.edu> NNTP-Posting-Host: austern.hip.berkeley.edu