Re: [Boost-users] is_polymorphic addition please
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. Anyway, sorry for hijacking a thread. Ray Hilton, _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
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'.
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.
Right, but the thing that confuses me is that those classes *aren't* polymorphic ones, and *don't* make the derived class polymorphic.... John.
participants (3)
-
John Maddock
-
Peter Dimov
-
Ray Hilton