Re: crasher fix


Subject: Re: crasher fix
From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Tue May 15 2001 - 12:48:44 CDT


On Tue, 15 May 2001, Mike Nordell wrote:

> > void* getFirstItem() const;
> > void* getLastItem() const;
>
> These are also errors. Either they should be non-const, or they should
> return const pointers.

I tried to make them const, but then ut_stack::pop gives a warning.

bool UT_Stack::pop(void ** ppVoid)

Would it be ok to make pop instead have the following signature:

bool UT_Stack::pop(const void* & ppVoid)

similarly with the other stack accessors.

pat



This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:04 CDT