Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
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
@@ -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) \

0 comments on commit 78806df

Please sign in to comment.