2 Mar
2006
2 Mar
'06
9:23 p.m.
Ray Hilton wrote:
I'm not entirely sure what you mean here: do you mean "if class X is only polymorphic because of base class Y, then don't count X as polymorphic"?
If so then I don't see any way to implement that, anyone else?
John.
Yes, that is what i meant. A lot of stuff that is inherited will never be used polymorphically, like boost::noncopyable, binary_funciton<> type classes that only bring in typedefs etc. It would we be of great help im sure.
Neither of these will make your class polymorphic; in this context (and in the C++ standard) 'polymorphic' means 'has at least one virtual function'.