Re: virtual function call issue
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 22 Sep 2008 07:05:25 -0400
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F4B934BF-790B-4F15-A5F6-F3F02E003B9D@xxxxxxxxxxxxx
The different assembly code when we call through z and z1 in below
sample is,
- we know the type of z, so no need to access vtable to make function
call;
- we do not know the exact type for a pointer, so need to access
vtable to make function call.
Correct.
--
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
.
- Follow-Ups:
- Re: virtual function call issue
- From: George
- Re: virtual function call issue
- References:
- virtual function call issue
- From: George
- virtual function call issue
- Prev by Date: Re: Dual interface
- Next by Date: Re: template typedef
- Previous by thread: RE: virtual function call issue
- Next by thread: Re: virtual function call issue
- Index(es):
Relevant Pages
|