aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/code-stream.hxx
diff options
context:
space:
mode:
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)