mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
ci: fix clang warnings
This commit is contained in:
committed by
Henry Schreiner
parent
6a80171c42
commit
e428a7f6b8
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user