Added dtype from const char pointer ctor

This commit is contained in:
Ivan Smirnov 2016-07-25 00:58:17 +01:00
parent c6257f8641
commit ad5ca6d4e6

View File

@ -125,6 +125,8 @@ public:
m_ptr = from_args(pybind11::str(format)).release().ptr(); m_ptr = from_args(pybind11::str(format)).release().ptr();
} }
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;
args["names"] = names; args["names"] = names;