Skip to content

Commit 37d89f5

Browse files
committed
[bugfix] fix pyCGraph return CStatus error
1 parent 196d892 commit 37d89f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/pyCGraph.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace py = pybind11;
1010
PYBIND11_MODULE(pyCGraph, m) {
1111
py::class_<CStatus>(m, "CStatus")
1212
.def(py::init<>())
13+
.def(py::init<int, const std::string&>())
1314
.def("getCode", &CStatus::getCode)
1415
.def("getInfo", &CStatus::getInfo)
1516
.def("isOK", &CStatus::isOK);

0 commit comments

Comments
 (0)