From e7ca7840a937f2c6d145802910a084b0a07774de Mon Sep 17 00:00:00 2001 From: Julien Lamy Date: Wed, 31 Jan 2024 18:26:18 +0100 Subject: [PATCH] Fix for C++11 --- wrappers/python/opaque_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/python/opaque_types.h b/wrappers/python/opaque_types.h index 7797d8c..9aead1b 100644 --- a/wrappers/python/opaque_types.h +++ b/wrappers/python/opaque_types.h @@ -53,7 +53,7 @@ T convert_sequence(pybind11::sequence & source, Args && ... args) // WARNING: Strings and DataSets are ambiguous when passing bytearray // Skip conversion to strings if we get an sequence of bytearrays auto const is_byte_array = std::all_of( - source.begin(), source.end(), [](auto && x) { + source.begin(), source.end(), [](pybind11::object && x) { return PyByteArray_CheckExact(x.ptr()); }); try_convert(odil::Value::Integers);