Patch: Virtual Destructor
Jeffrey Oldham
oldham at codesourcery.com
Thu Mar 29 19:10:33 UTC 2001
This concludes code submissions to permit gcc 3.1 to compile a Pooma
"hello, world" program. With "-Wall -Wno-sign-compare", only one
warning remains. Thanks to everyone's help.
This is the only committed portion of the patch previously labelled
"Other Changes (3 of 3)".
2001-03-29 Jeffrey D. Oldham <oldham at codesourcery.com>
* Observer.h (SingleObserver::~SingleObserver): Make virtual.
Reviewed by Scott Haney
Tested on sequential Linux using gcc 3.1
Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
? LINUXgcc
? Utilities.patch
? Utilities.ChangeLog
? differences
? Inform.h.patch
? Observer.h.patch
? Inform.h.ChangeLog
? tests/LINUXgcc
Index: Observer.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Utilities/Observer.h,v
retrieving revision 1.10
diff -c -p -r1.10 Observer.h
*** Observer.h 2000/03/07 13:18:25 1.10
--- Observer.h 2001/03/29 19:06:00
*************** public:
*** 180,188 ****
// Destructors
//============================================================
! // The destructor is not made virtual, since we should not ever need
! // to delete an object via its SingleObserver base class.
! ~SingleObserver() { }
//============================================================
--- 180,186 ----
// Destructors
//============================================================
! virtual ~SingleObserver() { }
//============================================================
More information about the pooma-dev
mailing list