Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example where virtual call is appropriate #31

Open
tomlankhorst opened this issue Mar 30, 2020 · 0 comments
Open

Add example where virtual call is appropriate #31

tomlankhorst opened this issue Mar 30, 2020 · 0 comments
Assignees

Comments

@tomlankhorst
Copy link
Contributor

Sometimes virtual functions are costly, sometimes not. Show both examples in this repo.

As suggested in #23 by @peci1:

Virtual functions might be costly if the function is called often. Maybe the code could have a non-virtual function OftenCalledFunction and a virtual NotSoOftenCalledFunction. But that decision is on you.

@tomlankhorst tomlankhorst self-assigned this Mar 30, 2020
@tomlankhorst tomlankhorst linked a pull request Mar 30, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant