StackOverflow Questions for Tag: virtual-functions

Sadeq
Sadeq

Reputation: 8043

Is it possible to recognize undesirable overriding of virtual functions?

Score: 3

Views: 126

Answers: 1

Read More
AngelosFr
AngelosFr

Reputation: 137

Call to virtual method during construction bypasses virtual dispatch C++

Score: 0

Views: 177

Answers: 1

Read More
Blue Diamond
Blue Diamond

Reputation: 3069

Mechanism of Vptr and Vtable in C++

Score: 15

Views: 30582

Answers: 3

Read More
user11313931
user11313931

Reputation:

How to speed up dynamic dispatch by 20% using computed gotos in standard C++

Score: 16

Views: 2894

Answers: 1

Read More
ustulation
ustulation

Reputation: 3760

C++ : How does Virtual Function resolve "this" pointer scope issue?

Score: 4

Views: 3184

Answers: 4

Read More
qubu
qubu

Reputation: 161

eliminate unused virtual functions

Score: 3

Views: 2481

Answers: 3

Read More
cppBeginner
cppBeginner

Reputation: 1212

Magic way to make :: base (e.g. Animal) class know class of its REAL self derive instance (Dog) upon "new Dog()"

Score: 0

Views: 88

Answers: 0

Read More
yonatan
yonatan

Reputation: 2193

Can you write virtual functions / methods in Java?

Score: 197

Views: 269304

Answers: 6

Read More
bedman3
bedman3

Reputation: 1

When is virtual dispatch faster than function templates in C++ runtime?

Score: 0

Views: 124

Answers: 2

Read More
patraulea
patraulea

Reputation: 916

Static C++ check for pure virtual functions passed in constructor to std::bind?

Score: 0

Views: 91

Answers: 0

Read More
Armen Tsirunyan
Armen Tsirunyan

Reputation: 133092

Return Type Covariance with Smart Pointers

Score: 38

Views: 9039

Answers: 5

Read More
Daniel
Daniel

Reputation: 365

Pure virtual function issue

Score: 6

Views: 631

Answers: 2

Read More
andreas buykx
andreas buykx

Reputation: 12960

Performance penalty for working with interfaces in C++?

Score: 52

Views: 18825

Answers: 17

Read More
Enlico
Enlico

Reputation: 28490

How to measure difference in performance between virtual function+inheritance and std::function member w/o inheritance?

Score: 1

Views: 86

Answers: 0

Read More
quant
quant

Reputation: 23102

Does final imply override?

Score: 77

Views: 43130

Answers: 5

Read More
Dominik Ficek
Dominik Ficek

Reputation: 566

Overriding derived virtual method in a templated class

Score: 2

Views: 80

Answers: 1

Read More
Arkanil Paul
Arkanil Paul

Reputation: 147

Why assembly differ when derived class method calls base class implementation of pure virtual method versus implementing it directly in derived class?

Score: 5

Views: 115

Answers: 0

Read More
nandu
nandu

Reputation: 29

LSP and virtual methods

Score: 2

Views: 49

Answers: 2

Read More
Diaos wang
Diaos wang

Reputation: 9

What is the difference between (this->*&A::main)(); and this->A::main(); in C++ when dealing with virtual functions?

Score: -1

Views: 104

Answers: 2

Read More
Nekomiya Kasane
Nekomiya Kasane

Reputation: 123

How to avoid calling a virtual function in destructor when the base class need to know info about the derived when destructing?

Score: 0

Views: 135

Answers: 3

Read More
PreviousPage 1Next