From d9f24de7c0f710d37ff173410b56a6523c4bdc8f Mon Sep 17 00:00:00 2001 From: elvez Date: Sun, 16 Jul 2006 21:56:04 +0000 Subject: [PATCH] - Written ConcreteHistory copy constructor git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@775 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/backend/concrete_history.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backend/concrete_history.cc b/src/backend/concrete_history.cc index b49a772..abdeb3b 100644 --- a/src/backend/concrete_history.cc +++ b/src/backend/concrete_history.cc @@ -90,6 +90,13 @@ ConcreteHistory::~ConcreteHistory() for_each(_snapshots.begin(), _snapshots.end(), ptr_fun(operator delete)); } +ConcreteHistory::ConcreteHistory(const ConcreteHistory& h) : + History(h) +{ + typedef Snapshots::const_iterator SnapIt; + for(SnapIt it = h._snapshots.begin(); it != h._snapshots.end(); ++it) + _snapshots.push_back(new ConcreteEnvironment(*(*it))); +} void ConcreteHistory::append_new_environment(ConcreteEnvironment* environment)