Skip to content

Commit

Permalink
Try to fix a compilation issue with Intel c++
Browse files Browse the repository at this point in the history
  • Loading branch information
parcollet committed Nov 12, 2024
1 parent dd779d7 commit 6f69ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c2py/converters/stl/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<T &>(base_t::py2c(ob)); }
Expand Down

0 comments on commit 6f69ed3

Please sign in to comment.