Commit 69426943 authored by Ivan Smirnov's avatar Ivan Smirnov Committed by Wenzel Jakob
Browse files

Allow implicit casts from literal strings to dtype

parent ef5a3804
...@@ -174,7 +174,7 @@ public: ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment