MESSAGE
DATE | 2011-06-05 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace
|
From owner-hangout-outgoing-at-mrbrklyn.com Sun Jun 5 00:27:53 2011 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix) id D8E8B100B9D; Sun, 5 Jun 2011 00:27:52 -0400 (EDT) Delivered-To: hangout-outgoing-at-www2.mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix, from userid 28) id 86DC9100BC3; Sun, 5 Jun 2011 00:27:52 -0400 (EDT) Delivered-To: hangout-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by www2.mrbrklyn.com (Postfix) with ESMTP id 4A413100B9D for ; Sun, 5 Jun 2011 00:27:25 -0400 (EDT) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 78A8F32F12 for ; Sun, 5 Jun 2011 00:27:38 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 20529) id 65DFD33C6F; Sun, 5 Jun 2011 00:27:38 -0400 (EDT) From: Ruben Safir To: hangout-at-nylxs.com Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (NetBSD/5.1 (i386)) Message-Id: <20110605042738.65DFD33C6F-at-panix2.panix.com> Date: Sun, 5 Jun 2011 00:27:38 -0400 (EDT) Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
-- forwarded message -- Path: reader1.panix.com!panix!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Bo Persson" Newsgroups: comp.lang.c++ Subject: Re: Anonymous namespace Date: Sat, 4 Jun 2011 11:33:45 +0200 Lines: 29 Message-ID: <94ucfdFv9lU1-at-mid.individual.net> References: <03464db0-e118-463c-9834-171dab457e42-at-h9g2000yqk.googlegroups.com> X-Trace: individual.net gOvfFIxUYM4DbDMYEwGYmwySwTqLGqHsgV/IfDW87XUWHO4x/1 Cancel-Lock: sha1:ZAyIMlnEKjNr/t25mI2dyouyAf8= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 110603-1, 2011-06-03), Outbound message X-Antivirus-Status: Clean Xref: panix comp.lang.c++:1086024
Ruben Safir wrote: > On Fri, 03 Jun 2011 09:44:29 -0400, Victor Bazarov wrote: > > >> The Standard prohibits the use of names with no linkage or names >> with internal linkage as template arguments. Only objects with >> external linkage are allowed. > > Victor, you must have written the Bloomberg employment examination. > :) > > What does :Only objects with external linkage are allowed. > specifically mean? If I create a class and a templated class in > the same file, is that not internal and no linkage? >
The thing with the linkage is that other rules force you to have one defintion of a type with external linkage. You can't have several with different meaning. That will make things like vector mean the same in the whole program.
Types with internal or no linkage would break that and make things extremely difficult for the linker.
Bo Persson
-- end of forwarded message --
|
|