diff options
Diffstat (limited to 'src/post.h')
-rw-r--r-- | src/post.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -95,6 +95,7 @@ public: xdata_(post.xdata_) { TRACE_CTOR(post_t, "copy"); + copy_details(post); } virtual ~post_t() { TRACE_DTOR(post_t); @@ -141,6 +142,12 @@ public: std::size_t xact_id() const; std::size_t account_id() const; + virtual void copy_details(const item_t& item) { + const post_t& post(dynamic_cast<const post_t&>(item)); + xdata_ = post.xdata_; + item_t::copy_details(item); + } + bool valid() const; struct xdata_t : public supports_flags<uint_least16_t> |