[luabind] problem binding template union
Brought to you by:
arvidn,
daniel_wallin
From: Domino <dom...@po...> - 2009-01-20 12:42:24
|
Hi, I have a problem binding template union into luabind. Following code gives me error C3200: 'ABC_' : invalid template argument for template parameter 'F', expected a class template boost_1_37_0\boost\mpl\aux_\preprocessed\plain\full_lambda.hpp 131 I know that this is boost::lambda but maybe some of you already faced the same problem and have some idea how to solve it. template<class T> union SMatrix_ { T m[4][4]; struct SMatrix { T m00, m01, m02, m03; T m10, m11, m12, m13; T m20, m21, m22, m23; T m30, m31, m32, m33; }; // constructors SMatrix_<T>() {} SMatrix_<T>( const SMatrix_<T>& ) {} }; typedef SMatrix_<float> SMatrixf; // ... luabind::module(pLua) [ luabind::class_<SMatrixf>("SMatrixf") .def(luabind::constructor<>()) ]; Thanks, D. ---------------------------------------------------------------------- Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis. Sprawdz. >> http://link.interia.pl/f2019 |