@@ -350,15 +350,22 @@ class QuaternionVisitor
350350
351351 public:
352352 static void expose () {
353- bp::class_<Quaternion>(" Quaternion" ,
354- " Quaternion representing rotation.\n\n "
355- " Supported operations "
356- " ('q is a Quaternion, 'v' is a Vector3): "
357- " 'q*q' (rotation composition), "
358- " 'q*=q', "
359- " 'q*v' (rotating 'v' by 'q'), "
360- " 'q==q', 'q!=q', 'q[0..3]'." ,
361- bp::no_init)
353+ #if BOOST_VERSION / 100 % 1000 < 71
354+ typedef EIGENPY_CLASS_HOLDER_TYPE (Quaternion) HolderType;
355+ #else
356+ typedef ::boost::python::detail::not_specified HolderType;
357+ #endif
358+
359+ bp::class_<Quaternion, HolderType>(
360+ " Quaternion" ,
361+ " Quaternion representing rotation.\n\n "
362+ " Supported operations "
363+ " ('q is a Quaternion, 'v' is a Vector3): "
364+ " 'q*q' (rotation composition), "
365+ " 'q*=q', "
366+ " 'q*v' (rotating 'v' by 'q'), "
367+ " 'q==q', 'q!=q', 'q[0..3]'." ,
368+ bp::no_init)
362369 .def (QuaternionVisitor<Quaternion>());
363370
364371 // Cast to Eigen::QuaternionBase and vice-versa
0 commit comments