aboutsummaryrefslogtreecommitdiff
path: root/cutl/container/graph.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
commit6ca1c8ee64bf7268d194eb15e72d3024a335039d (patch)
tree8876f51d9392f35c27eca83126fb9732e01bd916 /cutl/container/graph.hxx
parentf0fb6aeab118255266370121db79ab2a2fed88ad (diff)
Add root exception class
Derive all other exceptions from it.
Diffstat (limited to 'cutl/container/graph.hxx')
-rw-r--r--cutl/container/graph.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/cutl/container/graph.hxx b/cutl/container/graph.hxx
index 9d1c716..35650c1 100644
--- a/cutl/container/graph.hxx
+++ b/cutl/container/graph.hxx
@@ -7,12 +7,16 @@
#define CUTL_CONTAINER_GRAPH_HXX
#include <map>
+
+#include <cutl/exception.hxx>
#include <cutl/shared-ptr.hxx>
namespace cutl
{
namespace container
{
+ struct no_edge: exception {};
+
template <typename N, typename E>
class graph
{
@@ -20,8 +24,6 @@ namespace cutl
typedef N node_base;
typedef E edge_base;
- struct no_edge {};
-
public:
template <typename T>
T&