> Yes. BUT this requires access to a .txx file whenever the compiler
> reads the corresponding .h file. Hence all .h files should end with
> the line
> #include "this_file.txx"
> (where "this_file" is appropriately substituted, of course).
Yes. What I was thinking was that we could generalise this to not
bother compiling the Templates subdirectory when implicit templates
are being used. Low priority issue, of course.
> This has been done already in vcl (see e.g. vcl_list.h), be it inside a
> #if VCL_USE_IMPLICIT_TEMPLATES
> but not yet in vxl. I had a test of this in vnl quite some time ago
> (with gcc 2.95 on linux) and it worked fine.
> Note that VCL_USE_IMPLICIT_TEMPLATES is set in vcl_config_manual.h
The only problem that may arise from using implicit templates
throughout vxl is code bloat when using dynamic libraries. With static
libraries, any modern linker will get rid of the multiple
instantiations. With dynamic libraries, I don't know if the run-time
linker is clever enough. There is also the increased cost of
compilation time, especially with complex templates. I think we need
some empirical data before doing this--or at lease, before making it