diff --git a/src/type_caster.hpp b/src/type_caster.hpp index 9b0ae584..d0454bcd 100644 --- a/src/type_caster.hpp +++ b/src/type_caster.hpp @@ -5,10 +5,10 @@ namespace pybind11 { namespace detail { -template -struct type_caster> { - using vec_t = std::vector; - using value_conv = make_caster; +template <> +struct type_caster> { + using vec_t = std::vector; + using value_conv = make_caster; using size_conv = make_caster; bool load(handle src, bool convert) { @@ -20,7 +20,7 @@ struct type_caster> { for (auto it : seq) { value_conv conv; if (!conv.load(it, convert)) return false; - value.push_back(cast_op(std::move(conv))); + value.push_back(cast_op(std::move(conv))); } return true; } @@ -30,7 +30,7 @@ struct type_caster> { public: template static handle cast(T&& src, return_value_policy, handle) { - array_t arr({static_cast(src.size())}); + array_t arr(static_cast(src.size())); std::copy(src.begin(), src.end(), arr.mutable_data()); return arr.release(); }