This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template export(or export template) features
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: fsshl at att dot net
- Cc: Ubuntu-devel-discuss at lists dot ubuntu dot com, gcc-help at gcc dot gnu dot org
- Date: Sun, 3 Jul 2011 16:02:26 +0100
- Subject: Re: template export(or export template) features
- References: <1309681375.2751.10.camel@eric-laptop>
On 3 July 2011 09:22, eric wrote:
> Dear (Ubuntu linux) g++ programers:
>
> ?In my test with g++4.5.2, I can not make .cpp file contain template
> unless I instantiate it but that will spoil its flexibility/dynamics
> to runtime binding. ?And I certainly think seperate definition from .h
> file's declaration is better idea. ?Did anyone know how can I improve it
> or on higher g++ version, it (g++) have added such feature?
> ?From book/internet/web discussion, I knew Comeau and intel(linux) c++
> compiler did this years ago. ?There is a link to advocate/promote such
> feature.
> ?http://warp.povusers.org/programming/export_templates.html
>
> like to see your new info/cooperate on this issue
> sincerely, Eric
'export' is not worth the trouble, it has been removed from the
upcoming new C++ standard and will not be implemented in G++.