virtual-functions Questions

3

Solved

The CRTP is suggested in this question about dynamic polymorphism. However, this pattern is allegedly only useful for static polymorphism. The design I am looking at seems to be hampered speedwise ...
Kingsize asked 25/2, 2009 at 2:51

2

Solved

Maybe I am wrong, but this seems to be a very basic question. Suddenly my inheritance chain stopped working. Writing a small basic test application proved that it was me that was wrong (so I ...

7

Solved

Is there any real reason not to make a member function virtual in C++? Of course, there's always the performance argument, but that doesn't seem to stick in most situations since the overhead of vi...
Cassel asked 15/11, 2008 at 3:57

16

Solved

Is there a runtime performance penalty when using interfaces (abstract base classes) in C++?
Molecular asked 22/9, 2008 at 8:41

3

Solved

I've been doing some mocking with RhinoMocks and it requires that mocked methods be made virtual. This is fine except we have a custom framework which contains the methods that I want to mock which...
Merritt asked 26/9, 2008 at 1:29

9

Solved

In particular, wouldn't there have to be some kind of function pointer in place anyway?
Kobe asked 19/9, 2008 at 12:3

© 2022 - 2024 — McMap. All rights reserved.