From -3350173410080000218
X-Google-Thread: f78e5,7b79e159eaf7fc79
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!news.glorb.com!easynet-monga!easynet.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: AlbertoBarbati@libero.it (Alberto Barbati)
Newsgroups: comp.std.c++
Subject: Re: Template visibility / linkage
Date: Fri, 25 Jun 2004 19:38:42 +0000 (UTC)
Organization: [Infostrada]
Lines: 34
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <aaSCc.17697$GQ3.439171@twister2.libero.it>
References: <40d85d55$0$25274$9b4e6d93@newsread2.arcor-online.net> <DD3Cc.12537$GQ3.339152@twister2.libero.it> <40d9b2f2$0$25279$9b4e6d93@newsread2.arcor-online.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: mail2news.demon.co.uk 1088192322 18061 10.0.0.1 (25 Jun 2004 19:38:42 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 25 Jun 2004 19:38:42 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BdwX3-0004hA-00
	for mail2news@news.news.demon.net; Fri, 25 Jun 2004 19:38:41 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i5PJccrd020449; Sat, 26 Jun 2004 05:38:38 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i5PJccsN020440;
	Sat, 26 Jun 2004 05:38:38 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en, it
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: Fri, 25 Jun 2004 11:23:18 MET DST
X-Virus-Scanned: by amavisd-new at libero.it
X-Spamscanner: mailbox5.ucsd.edu  (v1.4 May 20 2004 13:55:33, 0.1/5.0 2.63)
X-MailScanner: PASSED (v1.2.8 32894 i5P9NKQf042547 mailbox5.ucsd.edu)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Level: 
X-Spam-Status: No, hits=-3.6 required=5.2 tests=AWL,BAYES_00 autolearn=ham 
	version=2.60-mulga_r1
Xref: g2news1.google.com comp.std.c++:1026

edA-qa mort-ora-y wrote:
> Alberto Barbati wrote:
> 
>> with the export keyword. A non-exported declaration (as in the 
>> example) is not enough. The presence of the specialization in <src1> 
>> is inessential to this example. The fact that the linkage of a 
>> template is external is completely unrelated with this example.
> 
> 
> Thank you. I think I understand now.  One question with the export 
> keyword though, must this go on only the declaration?  Does it then 
> apply to all specializations in other translation units -- or must the 
> specializations still be seen (in declaration only with export) in the 
> translation unit that instantiates them?
> 
> 

I don't completely understand how export works, so I leave to others the 
answer to your question. AFAIK only EDG-based compilers support the 
export keyword and I did't have yet the opportunity to use any such 
compiler. Your curiosity is praiseworthy, but unless you really have a 
compiler supporting export, I wouldn't mess with it.

Alberto

PS: in case you are wondering, no, neither gcc nor VC++ support the 
export keyword

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



