mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
Make dtype from string ctor accept const ref
This commit is contained in:
parent
fb7c9fd326
commit
f70cc112f0
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user