Boost logo

Boost :

From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-05-30 09:58:11


From: "joel de guzman"
> From: "David Abrahams" :
>
> > > PS> Following Bruce Florman's suggestion, all of the global extern
> object
> > > declarations are now const declarations. Since there are no non-const
> > > operations being done on these objects (does not have data to modify
> > > in the first place), and since const objects are static by default,
> doing
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > Since when? Have I missed something very significant?
>
> I'm glad you brought that up. I was a bit unsure about that statement.
> Short of digging into the C++ reference, would you be so kind as to
> re-phrase this statement?
>

How about this:

A const in C++ defaults to internal linkage. It is visible only within
the file where it is defined and cannot be seen at link time by other
translation units.

Thanks,
Joel de Guzman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk