This is the mail archive of the gcc-patches@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]

Re: Static linkage and anonymous namespace


> 1) From this standpoint, it would also make sense to make functions that
>    use types from an anonymous namespace internal; from Martin's
>    description, it sounds like his patch would do that (though I haven't
>    read it over).

It does indeed.

> 2) The whole point of the anonymous namespace is to allow file-local
>    things to be used in situations where a name with external linkage is
>    required; for example, in template arguments.

I don't understand this point (didn't the last time). What code would
not compile anymore that currently does?

Martin


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