From 5abbf445833f985f2aa22bde57d47cd9f83d0c92 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 05:02:11 -0600 Subject: Corrected copy of format_t objects Copying of sub-elements was causing pointer overlap. --- src/format.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/format.h') diff --git a/src/format.h b/src/format.h index 74d77768..0073b427 100644 --- a/src/format.h +++ b/src/format.h @@ -71,12 +71,11 @@ class format_t : public expr_base_t : supports_flags<>(), type(STRING), min_width(0), max_width(0) { TRACE_CTOR(element_t, ""); } + element_t(const element_t& elem); + ~element_t() throw() { TRACE_DTOR(element_t); } - element_t(const element_t& elem) : supports_flags<>() { - *this = elem; - } element_t& operator=(const element_t& elem) { if (this != &elem) { -- cgit v1.2.3