This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Anonymous Namespaces
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Kevin Atkinson <kevina at gnu dot org>
- Cc: gcc at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Sat, 31 Jan 2004 01:41:32 -0800
- Subject: Re: Anonymous Namespaces
- References: <Pine.LNX.4.44.0401310423440.9455-100000@kevin-p3.atkinson.dhs.org>
On Jan 31, 2004, at 01:40, Kevin Atkinson wrote:
So, is there a reason there not? If so, is there a way to declare
member
functions as having static linkage so that the unit-at-a-time code can
optimize them.
Yes because that is not the way C++ works, anonymous namespaces only
give an unique name
for that translation unit and that is it; it does not change the
linkage of the symbol at
all.
Thanks,
Andrew Pinski