Topic: Strings as template arguments


Author: David R Tribble <dtribble@technologist.com>
Date: 1999/05/05
Raw View
[I cross-posted this to comp.std.c++, since it deals with name
visibility. -drt]

Steve Clamage wrote:
> smeyers@aristeia.com (Scott Meyers) writes:
>> In fact, the only way I can think of to give a char array internal
>> linkage is to put it in an unnamed namespace or make it file static.
>
> Right, because you can't attach the "const" to the array object.

Are you saying that
    const char  a[] = "abc";
declares an array of const chars, but the array itself is not const?
IOW, is the name 'a' externally visible even though it contains
const elements?

-- David R. Tribble, dtribble@technologist.com --


      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]