summaryrefslogtreecommitdiff
path: root/lout
diff options
context:
space:
mode:
Diffstat (limited to 'lout')
-rw-r--r--lout/misc.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lout/misc.hh b/lout/misc.hh
index a3f5b3d3..730a47a4 100644
--- a/lout/misc.hh
+++ b/lout/misc.hh
@@ -112,6 +112,14 @@ public:
this->array = NULL;
}
+ inline SimpleVector (const SimpleVector &o) {
+ this->array = NULL;
+ this->num = o.num;
+ this->numAlloc = o.numAlloc;
+ resize ();
+ memcpy (this->array, o.array, sizeof (T) * num);
+ }
+
inline ~SimpleVector ()
{
if (this->array)