This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does debugging "pure virtual method called" have to be so hard?
- To: jason at cygnus dot com, oliva at dcc dot unicamp dot br
- Subject: Re: Why does debugging "pure virtual method called" have to be so hard?
- From: mrs at wrs dot com (Mike Stump)
- Date: Mon, 2 Nov 1998 11:55:58 -0800
- Cc: egcs at cygnus dot com
> I'd rather modify __pure_virtual() so that it [ ... ] throws an
> exception of some non-standard type, say, __pure_virtual_exception,
> which may end up turning into a call of unexpected(), then
> terminate().
>From the perspective of software fault tolerance, I think throwing an
exception, which can be caught and programmed around, would be more
desirable than what we do now or what we did yesterday. I'm for it.