From 961b30926b3b9f2b3e9c1a99df3f25fea6b13118 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 26 Jul 2008 04:08:55 -0400 Subject: --verify works again, but the memory totals at the end still need work. --- parsexp.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'parsexp.h') diff --git a/parsexp.h b/parsexp.h index 1ed71e66..de2c9fe1 100644 --- a/parsexp.h +++ b/parsexp.h @@ -39,7 +39,7 @@ namespace expr { DECLARE_EXCEPTION(error, parse_error); -class parser_t +class parser_t : public noncopyable { #define EXPR_PARSE_NORMAL 0x00 #define EXPR_PARSE_PARTIAL 0x01 @@ -52,7 +52,7 @@ public: typedef uint_least8_t flags_t; private: - struct token_t + struct token_t : public noncopyable { enum kind_t { VALUE, // any kind of literal value @@ -112,12 +112,14 @@ private: explicit token_t() : kind(UNKNOWN), length(0) { TRACE_CTOR(token_t, ""); } +#if 0 token_t(const token_t& other) { assert(false); TRACE_CTOR(token_t, "copy"); *this = other; } - ~token_t() { +#endif + ~token_t() throw() { TRACE_DTOR(token_t); } -- cgit v1.2.3