From 92b2f452f08b7ef033fbad852cd9809b2affd7aa Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 18 Jan 2016 21:00:25 +0100 Subject: [PATCH] fix regression in stl.h --- include/pybind11/stl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 5153fec9..231c8084 100644 --- a/include/pybind11/stl.h +++ b/include/pybind11/stl.h @@ -77,7 +77,7 @@ public: pybind11::set s; for (auto const &value: src) { object value_ = object(key_conv::cast(value, policy, parent), false); - if (!value_ || !s.add(value)) + if (!value_ || !s.add(value_)) return handle(); } return s.release();