# HG changeset patch # User Nicolas Saunier # Date 1397098174 14400 # Node ID 247f403dfed77654fc89ea9365755942cf7de41e # Parent 46b5cb3f3114c28da46e18ae0d94edabe7d52ae2# Parent e04b22ce2fcda8c2c07a3f671e3a105f2ef93985 merged diff -r e04b22ce2fcd -r 247f403dfed7 c/Motion.cpp --- a/c/Motion.cpp Fri Apr 04 17:43:56 2014 -0400 +++ b/c/Motion.cpp Wed Apr 09 22:49:34 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++; }