diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-31 05:43:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-31 05:43:32 -0400 |
commit | 5c19bb48e0d78727fa7b99abce5b7e01226b8d1d (patch) | |
tree | f94217fcf7df1fafe2f581eedc37eb6077331996 /src/flags.h | |
parent | dd9775508a09f59d17750da6e7a222fafeba5b5f (diff) | |
download | fork-ledger-5c19bb48e0d78727fa7b99abce5b7e01226b8d1d.tar.gz fork-ledger-5c19bb48e0d78727fa7b99abce5b7e01226b8d1d.tar.bz2 fork-ledger-5c19bb48e0d78727fa7b99abce5b7e01226b8d1d.zip |
Added a copy constructor for basic_flags_t.
Diffstat (limited to 'src/flags.h')
-rw-r--r-- | src/flags.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<T, U>(other) { + TRACE_CTOR(basic_flags_t, "copy"); + } basic_flags_t& operator=(const basic_flags_t& other) { set_flags(other.flags()); return *this; |