Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57895 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2009-11-24 12:08:18


Author: jewillco
Date: 2009-11-24 12:08:17 EST (Tue, 24 Nov 2009)
New Revision: 57895
URL: http://svn.boost.org/trac/boost/changeset/57895

Log:
Added extra casts to fix VC++ warnings; fixes #3562
Text files modified:
   trunk/boost/graph/depth_first_search.hpp | 10 ++++++----
   1 files changed, 6 insertions(+), 4 deletions(-)

Modified: trunk/boost/graph/depth_first_search.hpp
==============================================================================
--- trunk/boost/graph/depth_first_search.hpp (original)
+++ trunk/boost/graph/depth_first_search.hpp 2009-11-24 12:08:17 EST (Tue, 24 Nov 2009)
@@ -193,7 +193,8 @@
 
     typename graph_traits<VertexListGraph>::vertex_iterator ui, ui_end;
     for (tie(ui, ui_end) = vertices(g); ui != ui_end; ++ui) {
- put(color, *ui, Color::white()); vis.initialize_vertex(*ui, g);
+ Vertex u = implicit_cast<Vertex>(*ui);
+ put(color, u, Color::white()); vis.initialize_vertex(u, g);
     }
 
     if (start_vertex != implicit_cast<Vertex>(*vertices(g).first)){ vis.start_vertex(start_vertex, g);
@@ -202,9 +203,10 @@
     }
 
     for (tie(ui, ui_end) = vertices(g); ui != ui_end; ++ui) {
- ColorValue u_color = get(color, *ui);
- if (u_color == Color::white()) { vis.start_vertex(*ui, g);
- detail::depth_first_visit_impl(g, *ui, vis, color, detail::nontruth2());
+ Vertex u = implicit_cast<Vertex>(*ui);
+ ColorValue u_color = get(color, u);
+ if (u_color == Color::white()) { vis.start_vertex(u, g);
+ detail::depth_first_visit_impl(g, u, vis, color, detail::nontruth2());
       }
     }
   }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk