summaryrefslogtreecommitdiff
path: root/include/array.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2016-05-20 11:16:12 +0200
committerMartijn Otto <martijn.otto@copernica.com>2016-05-20 11:16:12 +0200
commit72618921adee29022038dd5fbd130f922d5078bc (patch)
tree8f83d433382ed7f808c29994cdd79981e48eab40 /include/array.h
parent248318dd608ede0b597951ff45c22164ee4f71d0 (diff)
Fixed segfault during Value::~Value
Diffstat (limited to 'include/array.h')
-rw-r--r--include/array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/array.h b/include/array.h
index 126cd58..925e902 100644
--- a/include/array.h
+++ b/include/array.h
@@ -79,7 +79,7 @@ public:
* Change the internal type of the variable
* @param Type
*/
- virtual Value &setType(Type type) override
+ virtual Value &setType(Type type) & override
{
// throw exception if things are going wrong
if (type != Type::Array) throw FatalError("Changing type of a fixed array variable");