Allow pybind11::arg to have 0, false, or "" as default values.

This commit is contained in:
Jerry Gamache
2016-06-15 12:48:15 -04:00
parent 663513cf23
commit c6e0cdfa54
4 changed files with 13 additions and 4 deletions

View File

@@ -58,4 +58,5 @@ void init_ex11(py::module &m) {
using namespace py::literals;
m.def("kw_func_udl", &kw_func, "x"_a, "y"_a=300);
m.def("kw_func_udl_z", &kw_func, "x"_a, "y"_a=0);
}