inline functions problem

Started by
21 comments, last by glJunkie 22 years, 2 months ago
Thanks Void0000.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
Advertisement
I recently found a really interesting article at C++ Users Journal in which Josée Lajoie and Stanley Lippman explain that inlining virtual functions does make sense at some occasions, even pure virtual functions:

http://www.cuj.com/experts/1809/lippman.htm?topic=experts

Edited by - kvh on February 5, 2002 10:34:57 AM
From the above article:

quote:
One of the tensions in the C++ community is the pedagogical need to present a simple checklist set of rules versus the practical need to apply rules judiciously based on the situational context. The former is a response to the complexity of the language; the latter, to the complexity of the solutions we need to construct. The problem of when to declare virtual functions inline is a good illustration of this tension.


Wow, I thought _I_ sounded uppity.

It''s an interesting article, but I''d personally be afraid to do it. Maybe I''ll test it out here and there where appropriate, and of course be sure to check the disassembly. =)

This topic is closed to new replies.

Advertisement