Skip to content

Commit

Permalink
[numpy] Fix constexpr auto name for dtype=object
Browse files Browse the repository at this point in the history
Addresses compilation error for C++11
  • Loading branch information
EricCousineau-TRI committed Nov 2, 2023
1 parent 17cb2bf commit 78806df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ struct npy_format_descriptor_object {
}
pybind11_fail("Unsupported buffer format!");
}
static constexpr auto name = _("object");
static constexpr auto name = const_name("object");
};

# define PYBIND11_NUMPY_OBJECT_DTYPE(Type) \
Expand Down

0 comments on commit 78806df

Please sign in to comment.