From 7710d23275e3b99d7a624aa6b2d6723b242d6d1a Mon Sep 17 00:00:00 2001 From: Marco Tamassia Date: Tue, 5 Jul 2016 16:09:31 +1000 Subject: [PATCH] Fix bugs in Range class --- include/Mathema.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Mathema.h b/include/Mathema.h index 014e2fd..5830952 100644 --- a/include/Mathema.h +++ b/include/Mathema.h @@ -325,9 +325,9 @@ namespace RLLib ranges.clear(); } - Ranges(const Range& that) + Ranges(const Ranges& that) { - for (typename Vectors::iterator iter = that.begin(); iter != that.end(); ++iter) + for (typename Ranges::iterator iter = that.begin(); iter != that.end(); ++iter) ranges.push_back(*iter); } @@ -336,7 +336,7 @@ namespace RLLib if (this != that) { ranges.clear(); - for (typename Vectors::iterator iter = that.begin(); iter != that.end(); ++iter) + for (typename Ranges::iterator iter = that.begin(); iter != that.end(); ++iter) ranges.push_back(*iter); } return *this;