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

Make dtype from string ctor accept const ref

parent fb7c9fd3
......@@ -170,7 +170,7 @@ public:
m_ptr = descr.strip_padding().release().ptr();
}
explicit dtype(std::string format) {
explicit dtype(const std::string &format) {
m_ptr = from_args(pybind11::str(format)).release().ptr();
}
......
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