aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/code-stream.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/compiler/code-stream.hxx
parentf0fb6aeab118255266370121db79ab2a2fed88ad (diff)
Add root exception class
Derive all other exceptions from it.
Diffstat (limited to 'cutl/compiler/code-stream.hxx')
-rw-r--r--cutl/compiler/code-stream.hxx6
1 files changed, 4 insertions, 2 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)