diff options
Diffstat (limited to 'cutl/container')
-rw-r--r-- | cutl/container/any.hxx | 4 | ||||
-rw-r--r-- | cutl/container/graph.hxx | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/cutl/container/any.hxx b/cutl/container/any.hxx index 0c89a38..4fd05b5 100644 --- a/cutl/container/any.hxx +++ b/cutl/container/any.hxx @@ -9,6 +9,8 @@ #include <memory> // std::auto_ptr #include <typeinfo> // std::type_info +#include <cutl/exception.hxx> + namespace cutl { namespace container @@ -16,7 +18,7 @@ namespace cutl class any { public: - struct typing {}; + struct typing: exception {}; public: template <typename X> 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& |