# HG changeset patch # User Nicolas Saunier # Date 1397252875 14400 # Node ID 60735bd452fca65a7ca1ebad22b98bb7a7b30df2 # Parent 000bddf84ad092c6619bdac5cdcaac1ed60cf114# Parent 247f403dfed77654fc89ea9365755942cf7de41e merged diff -r 000bddf84ad0 -r 60735bd452fc c/Motion.cpp --- a/c/Motion.cpp Fri Apr 11 17:47:38 2014 -0400 +++ b/c/Motion.cpp Fri Apr 11 17:47:55 2014 -0400 @@ -169,7 +169,7 @@ if (ft->minMaxSimilarity(*ft2, firstInstant, lastInstant, connectionDistance, segmentationDistance)) { UndirectedGraph::edge_descriptor e; bool unused; - tie(e, unused) = add_edge(newVertex, *vi, graph); + boost::tuples::tie(e, unused) = add_edge(newVertex, *vi, graph); // no need to add measures to graph[e] (edge properties) } } @@ -190,7 +190,7 @@ vector > tmpobjects(num), objects; // vector of components (component = vector of vertex descriptors) graph_traits::vertex_iterator vi, vend; - for(tie(vi,vend) = vertices(graph); vi != vend; ++vi) { + for(boost::tuples::tie(vi,vend) = vertices(graph); vi != vend; ++vi) { unsigned int id = components[*vi]; lastInstants[id] = max(lastInstants[id], graph[*vi].feature->getLastInstant()); tmpobjects[id].push_back(*vi); @@ -249,6 +249,6 @@ void FeatureGraph::computeVertexIndex(void) { graph_traits::vertex_iterator vi, vend; graph_traits::vertices_size_type cnt = 0; - for(tie(vi,vend) = vertices(graph); vi != vend; ++vi) + for(boost::tuples::tie(vi,vend) = vertices(graph); vi != vend; ++vi) graph[*vi].index = cnt++; }