This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Anonymous Namespaces



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]