[C++-sig] [boost.python] Can't import a wrapped template class
Alex Mohr
amohr at pixar.com
Fri Oct 26 22:41:23 CEST 2012
On 10/26/2012 1:27 PM, Stefan Seefeld wrote:
> The entire issue disappears if you move your member function definitions
> (including the constructor) from varbls.cpp to varbls.h.
Alternatively, explicitly instantiate in varbls.cpp.
template class _Variable<double>;
Again, you might want to google "explicit template instantiation" or
similar.
Alex
More information about the Cplusplus-sig
mailing list