Skip to content

Commit

Permalink
[numpy] Fix constexpr auto name for dtype=object (#66)
Browse files Browse the repository at this point in the history
Addresses compilation error for C++11
  • Loading branch information
EricCousineau-TRI authored Nov 2, 2023
1 parent 5ffbae2 commit c1b0cdd
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 @@ -1548,7 +1548,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 c1b0cdd

Please sign in to comment.