From 573fdde4618542e936253a5cf05a508e8bcc1be9 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Wed, 24 Oct 2018 12:15:26 +0200 Subject: [PATCH] Fix MSVC build with Matrix operator* src\absolute_pose\modules\main.cpp(773): error C2677: binary '*': no global operator found which takes type 'const Eigen::Matrix' (or there is no acceptable conversion) --- src/absolute_pose/modules/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/absolute_pose/modules/main.cpp b/src/absolute_pose/modules/main.cpp index 7cff9f69..ed0c271a 100644 --- a/src/absolute_pose/modules/main.cpp +++ b/src/absolute_pose/modules/main.cpp @@ -770,7 +770,7 @@ opengv::absolute_pose::modules::upnp_main( { Eigen::Matrix s; upnp_fill_s(quaternion,s); - Eigen::Matrix valueM = s.transpose() * M * s + 2.0 * C * s; + Eigen::Matrix valueM = s.transpose() * M * s + C * s * 2.0; double value = valueM[0] + gamma; std::vector,Eigen::aligned_allocator< std::pair > >::iterator