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