Re: call base class function or derived class function
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 19 Mar 2008 09:11:17 -0400
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9E2F1FBE-8F2F-432A-A2BA-BA5AE5070566@xxxxxxxxxxxxx
I have performed experiment, you are correct and there is vtable for
abstract class in its constructor. But its content is so confusing.
Here is the content of vtable when I get from constructor of base
abstract class.
- __vfptr 0x00df574c const Foo::`vftable' *
[0] 0x00df1168 __purecall *
__purecall is the function provided by CRT. MSVC compiler puts it into
vtable slots corresponding to pure virtual functions. When called, it
prints a diagnostic message then aborts the program (of course, in a
valid program it would never be called).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: call base class function or derived class function
- From: Igor Tandetnik
- Re: call base class function or derived class function
- From: George
- Re: call base class function or derived class function
- From: Abhishek Padmanabh
- Re: call base class function or derived class function
- From: George
- Re: call base class function or derived class function
- From: Abhishek Padmanabh
- Re: call base class function or derived class function
- From: Ben Voigt [C++ MVP]
- Re: call base class function or derived class function
- From: Igor Tandetnik
- Re: call base class function or derived class function
- From: Ben Voigt [C++ MVP]
- Re: call base class function or derived class function
- From: Igor Tandetnik
- Re: call base class function or derived class function
- From: Igor Tandetnik
- Re: call base class function or derived class function
- From: Igor Tandetnik
- Re: call base class function or derived class function
- Prev by Date: Re: call base class function or derived class function
- Next by Date: Re: call base class function or derived class function
- Previous by thread: Re: call base class function or derived class function
- Next by thread: Re: QueryPerformanceFrequency
- Index(es):
Relevant Pages
|