From 8ea894b1dd330f0744d090af1c257f64dd577230 Mon Sep 17 00:00:00 2001 From: Jose-Luis Blanco-Claraco Date: Fri, 21 Feb 2014 10:54:18 +0100 Subject: [PATCH] Fix MSVC12 iostream error --- libs/srba/include/mrpt/srba/impl/spantree_update_symbolic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/srba/include/mrpt/srba/impl/spantree_update_symbolic.h b/libs/srba/include/mrpt/srba/impl/spantree_update_symbolic.h index ec900f0ba2..650e577d07 100644 --- a/libs/srba/include/mrpt/srba/impl/spantree_update_symbolic.h +++ b/libs/srba/include/mrpt/srba/impl/spantree_update_symbolic.h @@ -114,7 +114,7 @@ cout << "ST: Shorter path ST["< "<< TSpanTreeEntry &ste_r_inSTs = st_s[r]; ste_r_inSTs.distance = new_dist; ste_r_inSTs.next = ste_s2ik ? ste_s2ik->next : new_node_id; // Next node in the direction towards "ik" or to "n" if this is "ik" - ASSERT_NOT_EQUAL_(s,ste_r_inSTs.next) // no self-loops! + ASSERT_NOT_EQUAL_(static_cast(s), static_cast(ste_r_inSTs.next)) // no self-loops! // Mark nodes with their "next_node" modified: kfs_with_modified_next_edge.insert( make_pair(s,r) ); @@ -143,7 +143,7 @@ cout << "ST: New path ST["<next : ne TSpanTreeEntry &ste_r_inSTs = st_s[r]; // O(log N) ste_r_inSTs.distance = new_dist; ste_r_inSTs.next = ste_s2ik ? ste_s2ik->next : new_node_id; // Next node in the direction towards "ik" - ASSERT_NOT_EQUAL_(s,ste_r_inSTs.next) // no self-loops! + ASSERT_NOT_EQUAL_(static_cast(s), static_cast(ste_r_inSTs.next)) // no self-loops! // Mark nodes with their "next_node" modified: kfs_with_modified_next_edge.insert(make_pair(r,s));