[kde-edu]: Templates or not ?

Vladimir ks.vladimir at gmail.com
Mon Nov 19 17:02:44 CET 2007


Hello All,

I'm thinking (still only in theory) about implementing 3d support for 
StepCore. A very big part of the library is almost dimensional-independent: I 
just need to replace Vector2d by Vector3d and the obvious way to do it is to 
use templates. But AFAIK this makes my library header-only which increases 
compilation time and disallows sharing of the library. Moreover, in StepCore 
I'm using my own object introspection system which needs static data members 
and I do not know how to implement them in header-only library. Is it 
possible ? Probably someone has some other suggestions ?

-- 
      Best Regards,
        Vladimir


More information about the kde-edu mailing list