From 5c19bb48e0d78727fa7b99abce5b7e01226b8d1d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Jan 2009 05:43:32 -0400 Subject: Added a copy constructor for basic_flags_t. --- src/flags.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/flags.h') diff --git a/src/flags.h b/src/flags.h index eb42311c..b4c1a37c 100644 --- a/src/flags.h +++ b/src/flags.h @@ -95,6 +95,10 @@ public: TRACE_DTOR(basic_flags_t); } + basic_flags_t(const basic_flags_t& other) + : supports_flags(other) { + TRACE_CTOR(basic_flags_t, "copy"); + } basic_flags_t& operator=(const basic_flags_t& other) { set_flags(other.flags()); return *this; -- cgit v1.2.3