From 6f69ed3b9fb89c7e9dd0a94cd6b44c9b4782bcdd Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Tue, 12 Nov 2024 18:18:00 -0500 Subject: [PATCH] Try to fix a compilation issue with Intel c++ --- src/c2py/converters/stl/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c2py/converters/stl/any.hpp b/src/c2py/converters/stl/any.hpp index 4c87609..28b7d40 100644 --- a/src/c2py/converters/stl/any.hpp +++ b/src/c2py/converters/stl/any.hpp @@ -44,7 +44,7 @@ namespace c2py { static bool is_convertible(PyObject *ob, bool raise_exception) { if (!base_t::is_convertible(ob, raise_exception)) return false; - return base_t::py2c(ob).type() == std::type_index(typeid(T)); + return base_t::py2c(ob).type() == typeid(T); } static T &py2c(PyObject *ob) { return std::any_cast(base_t::py2c(ob)); }