"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "97e41de4e292bf0171babc75df65da0023fbd250"
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