Mercurial Hosting > traffic-intelligence
changeset 232:04355e51d895
removed tr1::
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 03 Jul 2012 00:17:30 -0400 |
parents | 249d65ff6c35 |
children | ab1a11176d7b |
files | c/Motion.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/c/Motion.cpp Mon Jul 02 23:49:39 2012 -0400 +++ b/c/Motion.cpp Tue Jul 03 00:17:30 2012 -0400 @@ -164,7 +164,7 @@ if (ft->minMaxSimilarity(*ft2, firstInstant, lastInstant, connectionDistance, segmentationDistance)) { UndirectedGraph::edge_descriptor e; bool unused; - tr1::tie(e, unused) = add_edge(newVertex, *vi, graph); + tie(e, unused) = add_edge(newVertex, *vi, graph); // no need to add measures to graph[e] (edge properties) } } @@ -185,7 +185,7 @@ vector<vector<vertex_descriptor> > tmpobjects(num), objects; // vector of components (component = vector of vertex descriptors) graph_traits<UndirectedGraph>::vertex_iterator vi, vend; - for(tr1::tie(vi,vend) = vertices(graph); vi != vend; ++vi) { + for(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); @@ -246,6 +246,6 @@ void FeatureGraph::computeVertexIndex(void) { graph_traits<FeatureGraph::UndirectedGraph>::vertex_iterator vi, vend; graph_traits<FeatureGraph::UndirectedGraph>::vertices_size_type cnt = 0; - for(tr1::tie(vi,vend) = vertices(graph); vi != vend; ++vi) + for(tie(vi,vend) = vertices(graph); vi != vend; ++vi) graph[*vi].index = cnt++; }