We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e49c02 commit cd7eaccCopy full SHA for cd7eacc
tests/test_pickling.cpp
@@ -71,7 +71,7 @@ test_initializer pickling([](py::module &m) {
71
throw std::runtime_error("Invalid state!");
72
/* Cast and construct */
73
auto& p = self.cast<PickleableWithDict&>();
74
- new (&p) Pickleable(t[0].cast<std::string>());
+ new (&p) PickleableWithDict(t[0].cast<std::string>());
75
76
/* Assign C++ state */
77
p.extra = t[1].cast<int>();
0 commit comments