1

I have written a class that inherits from Eigen::MatrixBase to add some functionality that can't be implemented with Eigen's plug in feature. However in the docs, it says

Before inheriting from Matrix, be really, I mean REALLY, sure that using EIGEN_MATRIX_PLUGIN is not what you really want (see previous section)

I've been running with my example class and have had a good amount of success for my particular use case. But I'm nervous, when other users start to use this class what might get revealed.

What are some common pit falls associated with doing this kind of inheritance?

  • 3
    Probably the usual pitfalls associated with inheritance, in particular the "fragile base class problem." – Robert Harvey May 21 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.