P
puzzlecracker
I have recently decided to go over the questions in the classical book
by Murray and few of them admittedly befuddled me.
page 140:
1. Under what circumstances should a smart compiler be able to use
static binding for a virtual function call? (is it when base class
pointer refers to base class object?)
2.Does it ever make sense to declare an inline virtual function? Under
what circumstances (is in it a contradiction unless it relates to my
answer to above question)?
3. Under what circumstances might be very costly to make a large
function virtual?
by Murray and few of them admittedly befuddled me.
page 140:
1. Under what circumstances should a smart compiler be able to use
static binding for a virtual function call? (is it when base class
pointer refers to base class object?)
2.Does it ever make sense to declare an inline virtual function? Under
what circumstances (is in it a contradiction unless it relates to my
answer to above question)?
3. Under what circumstances might be very costly to make a large
function virtual?