Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-05-30 16:46:49


At 10:20 AM 5/30/2001, David Abrahams wrote:

>> 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?

[basic.link] 3.5 Program and linkage

3 A name having namespace scope (3.3.5) has internal linkage if it is the
name of

— an object, reference, function or function template that is explicitly
declared static or,

— an object or reference that is explicitly declared const and neither
                                                      ^^^^^
  explicitly declared extern nor previously declared to have external
linkage; or

— a data member of an anonymous union.

--Beman


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