From 2539ea8bcaedca551fa42a3849f426e3547772e7 Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Tue, 12 Mar 2013 00:34:38 +0000 Subject: [PATCH] Changed .size() comparison against 0 to .empty() [SVN r83409] --- include/boost/graph/r_c_shortest_paths.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/r_c_shortest_paths.hpp b/include/boost/graph/r_c_shortest_paths.hpp index 9d395799..834f82e9 100644 --- a/include/boost/graph/r_c_shortest_paths.hpp +++ b/include/boost/graph/r_c_shortest_paths.hpp @@ -409,7 +409,7 @@ void r_c_shortest_paths_dispatch typename std::list::const_iterator csi = dsplabels.begin(); typename std::list::const_iterator csi_end = dsplabels.end(); // if d could be reached from o - if( dsplabels.size() ) + if( !dsplabels.empty() ) { for( ; csi != csi_end; ++csi ) {