quote:Original post by Matt Calabrese
If that is true, then what is the standards claim on polymorphism through "method pointers?"
In what way? The C++ Standard describes the semantics that a programmer can expect from dynamically resolved function calls (BTW, "method" is the incorrect terminology for C++). There is no attempt to impose an implementation mechanism.
quote:
Compilers should be free to their own implementation, but whether or not method pointers work with polymorphism should not.
That''s about right.
quote:
What if you don''t want dynamic linking on an object through a method pointer call?
Since the Standard has nothing to say about linking issues, I''ll assume you mean dynamic despatch. If you don''t want dynamic despatch, you don''t make a function virtual.