Suppressing abstract class with non-virtual destructor warning from pybind11 #1691
|
I am attempting to expose several classes to pyslang for typing (SyntaxFactory, SyntaxList, SeparatedSyntaxList, and TokenList) as seen in this commit. I am getting a build warning from my inclusion of Thanks! |
Replies: 1 comment 1 reply
|
It isn't deleted in the C++ but wrapping a SyntaxListBase in the |
It isn't deleted in the C++ but wrapping a SyntaxListBase in the
classhthing from pybind11 basically means there will be a shared_ptr to it internally, and that will definitely call delete on it. It might be ok to ignore since these are all POD types anyway but trying to mesh this with the python bindings is definitely tricky stuff, I'm not entirely sure without spending a lot of time looking at it.