This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Suggested FAQ entry
- To: Doug Semler <doug at seaspace dot com>
- Subject: Re: Suggested FAQ entry
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 11 Apr 1999 19:24:01 +0200
- Cc: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>, egcs-bugs at egcs dot cygnus dot com, egcs at egcs dot cygnus dot com
- Organization: CMLA, ENS Cachan -- CNRS URA 1611 (France)
- References: <199904110905.CAA26487@vortex.seaspace.com>
Doug Semler <doug@seaspace.com> writes:
[...]
| > | Solution:
| > | Make sure there exists a definition for all virtual functions
| > | declared in the header file - especially the first one declared (and not
| > | defined in the class declaration) - even if the functions are never used.
| >
| > This belongs to C++ per se, not EGCS. Doesn't it?
|
| Why? This is an implementation issue, not a language issue...isn't it?
No. The definition of ISO C++ require you do define all virtual
functions -- unless they are pure -- even if you seem not using them
explicitly: from C++ point of view, they are always used.
-- Gaby