• Jason Rhinelander's avatar
    Add a polymorphic static assert when using an alias · 42e5ddc5
    Jason Rhinelander authored
    An alias can be used for two main purposes: to override virtual methods,
    and to add some extra data to a class needed for the pybind-wrapper.
    Both of these absolutely require that the wrapped class be polymorphic
    so that virtual dispatch and destruction, respectively, works.
    42e5ddc5
test_class.cpp 12.4 KB