This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why does debugging "pure virtual method called" have to be so hard?


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]