Menu

Virtual base classes

Fraser
2019-08-28
2019-08-29
  • Fraser

    Fraser - 2019-08-28

    Are there any checks to do with virtual base classes? A move assignment operator might be invoked by more than one of the inheriting classes resulting in an object that is move assigned from a zombie object. Copy assignment may be done more times than necessary but the object should be ok.

     
  • Daniel Marjamäki

    No not really, as far as I know.
    we can add more checks.

     
  • Daniel Marjamäki

    I am not sure .. do you have a trac account? Then feel free to create Trac tickets with such ideas.

    The only "base class" check I remember off the top of my head that we have right now, is a warning when a virtual destructor is needed.

     

Log in to post a comment.