[Haskell-cafe] Re: What *not* to use Haskell for
Arnar Birgisson
arnarbi at gmail.com
Tue Nov 11 09:00:23 EST 2008
On Tue, Nov 11, 2008 at 14:46, Henning Thielemann
<lemming at henning-thielemann.de> wrote:
> SWIG helps wrapping C++ libraries by providing C wrappers to C++ functions.
> However, as far as I know, templates cannot be wrapped as they are, but only
> instances of templates. Thus there is no wrapper to STL.
Maybe my understanding is a bit off, but isn't this to be expected?
There's no way to compile a generic template to machine code, as
template instantiation happens at source level in C++.
cheers,
Arnar
More information about the Haskell-Cafe
mailing list