|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-03-02 16:23:59
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'.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net