home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!caen!sol.ctr.columbia.edu!news.cs.columbia.edu!ykim
- From: ykim@cs.columbia.edu (Yong Su Kim)
- Subject: g++ warning - destructor non virtual in inheritance relationship
- Message-ID: <BxA3t2.39p@cs.columbia.edu>
- Sender: news@cs.columbia.edu (The Daily News)
- Organization: Columbia University Department of Computer Science
- Date: Fri, 6 Nov 1992 05:12:38 GMT
- Lines: 18
-
-
- I have a class which inherits from two separate classes.
-
- eg class B: public c, public d
-
- and when I compile using g++, I get warning messages which say
- something about d's destructor being non virtual in inheritance
- relationship with B in the header file.
-
- It's just a warning, but I don't understand what is causing the
- problem. If someone could point out what I am doing wrong, it would
- be great. It's annoying having to see the same warnings again and
- again every time the .h file is included in a .cc file.
- --
- ===============================================================================
- Yong Su Kim, Class of 1993 | Internet: yk4@cunixb.cc.columbia.edu
- Columbia College, Columbia University | or ykim@cs.columbia.edu
-
-