[pooma-dev] gcc bug with static members of class templates?

Jeffrey Oldham oldham at codesourcery.com
Thu Apr 12 20:16:33 UTC 2001


On Wed, Apr 11, 2001 at 05:07:13PM -0700, Julian Cummings wrote:
> 
> gcc 2.95.2 on an HP in debug mode, I get a compile

When I tested the three gcc's, I used the following patch, which is
necessary to avoid gcc warnings.

To apply, go to the src/ directory and type "patch <
insert-patch-name-here".  When it complains that the files cannot be
found, just retype the files' names.

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: Partition/UniformMapper.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Partition/UniformMapper.h,v
retrieving revision 1.3
diff -c -p -r1.3 UniformMapper.h
*** Partition/UniformMapper.h	2000/06/07 23:36:46	1.3
--- Partition/UniformMapper.h	2001/04/12 20:12:47
*************** public:
*** 84,89 ****
--- 84,91 ----
    {
    }
  
+   virtual ~UniformMapper(){}
+ 
    void map(const List_t&) const;
  
    // member data
Index: Utilities/Observer.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Utilities/Observer.h,v
retrieving revision 1.11
diff -c -p -r1.11 Observer.h
*** Utilities/Observer.h	2001/03/29 19:06:45	1.11
--- Utilities/Observer.h	2001/04/12 20:12:48
*************** public:
*** 126,135 ****
    // Destructors
    //============================================================
  
!   // The destructor is not made virtual, since we should not ever need
!   // to delete an object via its Observer base class.
! 
!   ~Observer()
      {
      }
  
--- 126,132 ----
    // Destructors
    //============================================================
  
!   virtual ~Observer()
      {
      }
  


More information about the pooma-dev mailing list