This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
template export(or export template) features
- From: eric <fsshl at att dot net>
- To: Ubuntu-devel-discuss at lists dot ubuntu dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 03 Jul 2011 01:22:55 -0700
- Subject: template export(or export template) features
- Reply-to: fsshl at att dot net
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