Added a copy constructor for basic_flags_t.
This commit is contained in:
parent
dd9775508a
commit
5c19bb48e0
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue