home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!news.mentorg.com!sdl!adk
- From: adk@Warren.MENTORG.COM (Ajay Kamdar)
- Subject: Re: inline virtual functions
- Message-ID: <1992Sep15.150411.17717@Warren.MENTORG.COM>
- Organization: Mentor Graphics Corp. - IC Group
- References: <1992Sep15.023336.1403@cs.brown.edu>
- Date: Tue, 15 Sep 1992 15:04:11 GMT
- Lines: 20
-
- In article <1992Sep15.023336.1403@cs.brown.edu> sdm@cs.brown.edu (Scott Meyers) writes:
- >For all the compilers with which I am familiar, inline virtual functions
- >are oxymoronic: the function bodies are never inlined, and the object file
- >for each translation unit seeing the definition of the function receives a
- >static copy of the function. I tested this using cfront 3.0 and g++ 2.2.2,
- >and both behaved as I have described, neither issuing a warning about not
- >inlining a function.
- >
-
- Cfront based compilers will warn about noninlined virtual functions
- if you use the +w switch.
-
-
- - Ajay
-
- --
- I speak for none but myself.
-
- Ajay Kamdar Email : ajay_kamdar@mentorg.com
- Mentor Graphics, IC Group (Warren, NJ) Phone : (908) 580-0102
-