Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71238 - trunk/libs/graph/example
From: jewillco_at_[hidden]
Date: 2011-04-13 22:30:59


Author: jewillco
Date: 2011-04-13 22:30:56 EDT (Wed, 13 Apr 2011)
New Revision: 71238
URL: http://svn.boost.org/trac/boost/changeset/71238

Log:
Added note about broken example
Text files modified:
   trunk/libs/graph/example/min_max_paths.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/graph/example/min_max_paths.cpp
==============================================================================
--- trunk/libs/graph/example/min_max_paths.cpp (original)
+++ trunk/libs/graph/example/min_max_paths.cpp 2011-04-13 22:30:56 EDT (Wed, 13 Apr 2011)
@@ -6,6 +6,9 @@
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 //=======================================================================
+
+#error "This example appears to be incorrect; it uses edge weights that are smaller than 0 using the comparison operator passed to Dijkstra's algorithm, which is not allowed."
+
 #include <boost/config.hpp>
 #include <iostream>
 


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