home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15849 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.1 KB  |  29 lines

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