Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • inline_f(this, args) = can you give me an example, because I do not understand what exactly you mean? Commented Oct 23, 2024 at 11:41
  • see my answer to the question Commented Oct 23, 2024 at 14:03
  • When you say inline, you mean in reality a free aka non-member function, isn't it ? The question is then why the base class had an abstract member in the first place... Commented Oct 23, 2024 at 18:56
  • As far as I know, the current optimizers are already able to remove virtual calls if the type can be known. And for sure, from performance point of view, the free function with the pointer argument and a non-virtual member function will make absolutely no difference and generate almost the same code. Commented Oct 23, 2024 at 19:08