|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2008-07-09 10:59:46
Author: dgregor
Date: 2008-07-09 10:59:46 EDT (Wed, 09 Jul 2008)
New Revision: 47269
URL: http://svn.boost.org/trac/boost/changeset/47269
Log:
Support BOOST_NO_EXCEPTIONS in Boost.Graph, from Brian Barrett
Text files modified:
trunk/boost/graph/detail/read_graphviz_spirit.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/boost/graph/detail/read_graphviz_spirit.hpp
==============================================================================
--- trunk/boost/graph/detail/read_graphviz_spirit.hpp (original)
+++ trunk/boost/graph/detail/read_graphviz_spirit.hpp 2008-07-09 10:59:46 EDT (Wed, 09 Jul 2008)
@@ -53,6 +53,7 @@
#include <utility>
#include <map>
#include <boost/graph/graphviz.hpp>
+#include <boost/throw_exception.hpp>
namespace phoenix {
// Workaround: std::map::operator[] uses a different return type than all
@@ -292,12 +293,12 @@
void check_undirected() {
if(self.graph_.is_directed())
- throw boost::undirected_graph_error();
+ boost::throw_exception(boost::undirected_graph_error());
}
void check_directed() {
if(!self.graph_.is_directed())
- throw boost::directed_graph_error();
+ boost::throw_exception(boost::directed_graph_error());
}
void memoize_node() {
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