From b15f50fb8ff5d6c613723380f24ca123ef71db4f Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco-Claraco Date: Mon, 26 Nov 2018 10:43:53 +0100 Subject: [PATCH] fix ambiguous function call (MSVC2017) --- gtsam/base/Vector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/base/Vector.cpp b/gtsam/base/Vector.cpp index 6dc9800ca..7caf490ef 100644 --- a/gtsam/base/Vector.cpp +++ b/gtsam/base/Vector.cpp @@ -125,8 +125,8 @@ bool assert_inequal(const Vector& expected, const Vector& actual, double tol) { bool assert_equal(const SubVector& expected, const SubVector& actual, double tol) { if (equal_with_abs_tol(expected,actual,tol)) return true; cout << "not equal:" << endl; - print(expected, "expected"); - print(actual, "actual"); + print(static_cast(expected), "expected"); + print(static_cast(actual), "actual"); return false; }