• Jason Rhinelander's avatar
    Fail to compile with MI via class_ ctor parameters · b961626c
    Jason Rhinelander authored
    We can't support this for classes from imported modules (which is the
    primary purpose of a ctor argument base class) because we *have* to
    have both parent and derived to properly extract a multiple-inheritance
    base class pointer from a derived class pointer.
    
    We could support this for actual `class_<Base, ...> instances, but since
    in that case the `Base` is already present in the code, it seems more
    consistent to simply always require MI to go via template options.
    b961626c
test_multiple_inheritance.cpp 4.83 KB