diff options
Diffstat (limited to 'lib/Variables.cc')
-rw-r--r-- | lib/Variables.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Variables.cc b/lib/Variables.cc index 274a4ed..d96cad8 100644 --- a/lib/Variables.cc +++ b/lib/Variables.cc @@ -5,6 +5,12 @@ Variables::Variables(int nb) : Vars(nb), nbvars(nb) { } +Variables::Variables(const Variables & v) : nbvars(v.nbvars) { + for (int i = 0; i < nbvars; i++) { + Vars.push_back(v.Vars[i]); + } +} + Variables::~Variables() { } void Variables::SetTo(int i, const String & s) { |