From 694269435bc5f24d38d5aa6b252e481406f3d2ac Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Sat, 22 Oct 2016 10:51:19 +0100 Subject: [PATCH] Allow implicit casts from literal strings to dtype --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index b35426460..1dc2d04b9 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -174,7 +174,7 @@ public: m_ptr = from_args(pybind11::str(format)).release().ptr(); } - explicit dtype(const char *format) : dtype(std::string(format)) { } + dtype(const char *format) : dtype(std::string(format)) { } dtype(list names, list formats, list offsets, size_t itemsize) { dict args;