aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/compiler')
-rw-r--r--cutl/compiler/code-stream.hxx6
-rw-r--r--cutl/compiler/context.hxx5
-rw-r--r--cutl/compiler/type-info.hxx3
3 files changed, 9 insertions, 5 deletions
diff --git a/cutl/compiler/code-stream.hxx b/cutl/compiler/code-stream.hxx
index bb8305a..a1a5d1a 100644
--- a/cutl/compiler/code-stream.hxx
+++ b/cutl/compiler/code-stream.hxx
@@ -9,6 +9,8 @@
#include <memory> // std::auto_ptr
#include <ostream>
+#include <cutl/exception.hxx>
+
namespace cutl
{
namespace compiler
@@ -54,8 +56,8 @@ namespace cutl
typedef typename std::basic_streambuf<C>::traits_type traits_type;
typedef typename std::basic_streambuf<C>::int_type int_type;
- struct eof {};
- struct sync {};
+ class eof: exception {};
+ class sync: exception {};
public:
from_streambuf_adapter (std::basic_streambuf<C>& stream)
diff --git a/cutl/compiler/context.hxx b/cutl/compiler/context.hxx
index 4bae010..5f4eb1e 100644
--- a/cutl/compiler/context.hxx
+++ b/cutl/compiler/context.hxx
@@ -10,6 +10,7 @@
#include <string>
#include <cstddef> // std::size_t
+#include <cutl/exception.hxx>
#include <cutl/container/any.hxx>
namespace cutl
@@ -19,8 +20,8 @@ namespace cutl
class context
{
public:
- struct no_entry {};
- struct typing {};
+ struct no_entry: exception {};
+ struct typing: exception {};
public:
context () {}
diff --git a/cutl/compiler/type-info.hxx b/cutl/compiler/type-info.hxx
index f970067..9fa5593 100644
--- a/cutl/compiler/type-info.hxx
+++ b/cutl/compiler/type-info.hxx
@@ -10,6 +10,7 @@
#include <vector>
#include <typeinfo> // std::type_info
+#include <cutl/exception.hxx>
#include <cutl/static-ptr.hxx>
#include <cutl/compiler/type-id.hxx>
@@ -76,7 +77,7 @@ namespace cutl
//
//
- class no_type_info {};
+ class no_type_info: exception {};
type_info const&
lookup (type_id const&);