Make dtype from string ctor accept const ref

This commit is contained in:
Ivan Smirnov 2016-10-22 10:50:39 +01:00 committed by Wenzel Jakob
parent fb7c9fd326
commit f70cc112f0

View File

@ -170,7 +170,7 @@ public:
m_ptr = descr.strip_padding().release().ptr(); 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(); m_ptr = from_args(pybind11::str(format)).release().ptr();
} }