From 8034e6b7e77675c4f3862d13852f583c72fb1590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aurimas=20Fi=C5=A1eras?= Date: Sat, 26 Jan 2013 10:45:12 +0200 Subject: [PATCH] Update smbase/array.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compilation with gcc 4.7 array.h: In instantiation of ‘void ArrayStack::push(const T&) [with T = BPBox*]’: array.h:372:32: required from ‘void ObjArrayStack::push(T*) [with T = BPBox]’ boxprint.cc:371:39: required from here array.h:261:7: error: ‘setIndexDoubler’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] array.h:261:7: note: declarations in dependent base ‘GrowArray’ are not found by unqualified lookup array.h:261:7: note: use ‘this->setIndexDoubler’ instead --- smbase/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smbase/array.h b/smbase/array.h index 0d08869..c17a033 100644 --- a/smbase/array.h +++ b/smbase/array.h @@ -258,7 +258,7 @@ class ArrayStack : public GrowArray { T & operator[] (int i) { return GrowArray::operator[](i); } void push(T const &val) - { setIndexDoubler(len++, val); } + { this->setIndexDoubler(len++, val); } T pop() { return operator[](--len); } T const &top() const