- Written ConcreteHistory copy constructor
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@775 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
f4b255d31c
commit
d9f24de7c0
|
@ -90,6 +90,13 @@ ConcreteHistory::~ConcreteHistory()
|
||||||
for_each(_snapshots.begin(), _snapshots.end(), ptr_fun(operator delete));
|
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
|
void
|
||||||
ConcreteHistory::append_new_environment(ConcreteEnvironment* environment)
|
ConcreteHistory::append_new_environment(ConcreteEnvironment* environment)
|
||||||
|
|
Loading…
Reference in New Issue