From 6358599ecbe23a8ba1829dea21e532aa85aab932 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 3 Dec 2019 14:51:14 +0100 Subject: Fix QuaternionBase::cast for quaternion map and wrapper. --- test/geo_quaternion.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/geo_quaternion.cpp') diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index 27219db10..1da683c0e 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -245,6 +245,14 @@ template void mapQuaternion(void){ // is used to determine whether we can return a coeff by reference or not, which is not enough for Map. //const MCQuaternionUA& cmcq3(mcq3); //VERIFY( &cmcq3.x() == &mcq3.x() ); + + // test cast + { + Quaternion q1f = mq1.template cast(); + VERIFY_IS_APPROX(q1f.template cast(),mq1); + Quaternion q1d = mq1.template cast(); + VERIFY_IS_APPROX(q1d.template cast(),mq1); + } } template void quaternionAlignment(void){ -- cgit v1.2.3