mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-29 10:46:53 +08:00
fix regression in stl.h
This commit is contained in:
parent
2983d5e1de
commit
92b2f452f0
@ -77,7 +77,7 @@ public:
|
|||||||
pybind11::set s;
|
pybind11::set s;
|
||||||
for (auto const &value: src) {
|
for (auto const &value: src) {
|
||||||
object value_ = object(key_conv::cast(value, policy, parent), false);
|
object value_ = object(key_conv::cast(value, policy, parent), false);
|
||||||
if (!value_ || !s.add(value))
|
if (!value_ || !s.add(value_))
|
||||||
return handle();
|
return handle();
|
||||||
}
|
}
|
||||||
return s.release();
|
return s.release();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user