ci: fix clang warnings

This commit is contained in:
Henry Schreiner
2020-07-23 21:16:54 -04:00
committed by Henry Schreiner
parent 6a80171c42
commit e428a7f6b8
7 changed files with 37 additions and 4 deletions

View File

@@ -339,6 +339,8 @@ TEST_SUBMODULE(smart_ptr, m) {
// #187: issue involving std::shared_ptr<> return value policy & garbage collection
struct ElementBase {
virtual ~ElementBase() { } /* Force creation of virtual table */
ElementBase() = default;
ElementBase(const ElementBase&) = delete;
};
py::class_<ElementBase, std::shared_ptr<ElementBase>>(m, "ElementBase");