In C++ compiled with -O3, does inheritance without virtuality have a cost in terms of :
- execution time
- memory
If the answer is yes : why ?
As an example : are MyClass1 and MyClass2 equivalent in terms of performance and memory ?

In C++ compiled with -O3, does inheritance without virtuality have a cost in terms of :
If the answer is yes : why ?
As an example : are MyClass1 and MyClass2 equivalent in terms of performance and memory ?
