killerfox
10/19/2008 1:44:00 AM
On Oct 18, 11:21 am, puzzlecracker <ironsel2...@gmail.com> wrote:
> Is it possible to package a template implementation class into a
> library and how it is done (say into a dll or a static one).
>
> Since template expansion in c++ is static and takes place at compile
> time (unlike csharp), I would like to find out how we can simulate
> that?
>
> Thank
I don't think that is possible at all, since libraries are already
compiled, and just need to be linked, whereas templates need to be
seen by the compiler to generate the code.
One thing I can think of is wrapping all your template headers into a
precompiled header, and include this in your other projects, but other
than that I don't think its possible.
-Kf-