Make dtype from string ctor accept const ref

This commit is contained in:
Ivan Smirnov
2016-10-22 18:57:07 +02:00
committed by Wenzel Jakob
parent fb7c9fd326
commit f70cc112f0
+1 -1
View File
@@ -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();
}