diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-26 04:08:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-26 04:08:55 -0400 |
commit | 961b30926b3b9f2b3e9c1a99df3f25fea6b13118 (patch) | |
tree | f0f5efcc0b63f337c4838b8aad46dea2cd7926e4 /parsexp.h | |
parent | ee396957226e2273bc60ede7192c27038c432f24 (diff) | |
download | fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.gz fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.bz2 fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.zip |
--verify works again, but the memory totals at the end still need work.
Diffstat (limited to 'parsexp.h')
-rw-r--r-- | parsexp.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); } |