Skip to content

Commit 4e058b7

Browse files
committed
Building but not working, complaint about incompatible function arguments.
1 parent 92ebe1e commit 4e058b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/pythoncdb/py_algorithms.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ namespace cadabra
3030
m.def(name,
3131
&apply_algo<Algo, Args...>,
3232
pybind11::arg("ex"),
33-
std::forward<PyArgs>(args)...,
3433
pybind11::arg("deep") = deep,
3534
pybind11::arg("repeat") = repeat,
3635
pybind11::arg("depth") = depth,
36+
std::forward<PyArgs>(args)...,
3737
pybind11::doc(read_manual("algorithms", name).c_str()),
3838
pybind11::return_value_policy::reference_internal);
3939
}
@@ -60,10 +60,10 @@ namespace cadabra
6060
m.def(name,
6161
&apply_algo_preorder<Algo, Args...>,
6262
pybind11::arg("ex"),
63-
std::forward<PyArgs>(args)...,
6463
pybind11::arg("deep") = deep,
6564
pybind11::arg("repeat") = repeat,
6665
pybind11::arg("depth") = depth,
66+
std::forward<PyArgs>(args)...,
6767
pybind11::doc(read_manual("algorithms", name).c_str()),
6868
pybind11::return_value_policy::reference_internal);
6969
}

0 commit comments

Comments
 (0)