Allow implicit casts from literal strings to dtype

This commit is contained in:
Ivan Smirnov 2016-10-22 10:51:19 +01:00 committed by Wenzel Jakob
parent ef5a38044c
commit 694269435b

View File

@ -174,7 +174,7 @@ public:
m_ptr = from_args(pybind11::str(format)).release().ptr(); 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) { dtype(list names, list formats, list offsets, size_t itemsize) {
dict args; dict args;