From 4fb500d1b8d6cb1003c15d4ddac5fb4f22e2cf47 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 18 Dec 1996 10:14:47 +0000 Subject: [PATCH] flower-1.0.15 --- flower/vray.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flower/vray.hh b/flower/vray.hh index 302499b256..180008c4c6 100644 --- a/flower/vray.hh +++ b/flower/vray.hh @@ -105,13 +105,16 @@ public: T& last(int j=0) { return (*this)[size-j-1]; } + T last(int j=0) const { + return (*this)[size-j-1]; + } void swap (int i,int j) { T t((*this)[i]); (*this)[i]=(*this)[j]; (*this)[j]=t; } bool empty() { return !size; } - void insert(T&k, int j) { + void insert(T k, int j) { assert(j >=0 && j<= size); set_size(size+1); for (int i=size-1; i > j; i--) -- 2.39.5