Added a copy constructor for basic_flags_t.

This commit is contained in:
John Wiegley 2009-01-31 05:43:32 -04:00
parent dd9775508a
commit 5c19bb48e0

View file

@ -95,6 +95,10 @@ public:
TRACE_DTOR(basic_flags_t);
}
basic_flags_t(const basic_flags_t& other)
: supports_flags<T, U>(other) {
TRACE_CTOR(basic_flags_t, "copy");
}
basic_flags_t& operator=(const basic_flags_t& other) {
set_flags(other.flags());
return *this;