diff --git a/examples/shapes/wrapper/math_funcs/_pyshapes_math_funcs.main.cppwg.cpp b/examples/shapes/wrapper/math_funcs/_pyshapes_math_funcs.main.cppwg.cpp index 78ba6d1..b9367a1 100644 --- a/examples/shapes/wrapper/math_funcs/_pyshapes_math_funcs.main.cppwg.cpp +++ b/examples/shapes/wrapper/math_funcs/_pyshapes_math_funcs.main.cppwg.cpp @@ -8,5 +8,5 @@ namespace py = pybind11; PYBIND11_MODULE(_pyshapes_math_funcs, m) { - m.def("add", &add, " ", py::arg("i") = 1., py::arg("j") = 2.); + m.def("add", &add, " ", py::arg("i") = 1.0, py::arg("j") = 2.0); } diff --git a/examples/shapes/wrapper/primitives/Cuboid.cppwg.cpp b/examples/shapes/wrapper/primitives/Cuboid.cppwg.cpp index cfaa752..8927818 100644 --- a/examples/shapes/wrapper/primitives/Cuboid.cppwg.cpp +++ b/examples/shapes/wrapper/primitives/Cuboid.cppwg.cpp @@ -14,6 +14,6 @@ PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); void register_Cuboid_class(py::module &m) { py::class_, Shape<3>>(m, "Cuboid") - .def(py::init(), py::arg("width") = 2., py::arg("height") = 1., py::arg("depth") = 1.) + .def(py::init(), py::arg("width") = 2.0, py::arg("height") = 1.0, py::arg("depth") = 1.0) ; } diff --git a/examples/shapes/wrapper/primitives/Rectangle.cppwg.cpp b/examples/shapes/wrapper/primitives/Rectangle.cppwg.cpp index 83a286b..2cc8a68 100644 --- a/examples/shapes/wrapper/primitives/Rectangle.cppwg.cpp +++ b/examples/shapes/wrapper/primitives/Rectangle.cppwg.cpp @@ -14,7 +14,7 @@ PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr); void register_Rectangle_class(py::module &m) { py::class_, Shape<2>>(m, "Rectangle") - .def(py::init(), py::arg("width") = 2., py::arg("height") = 1.) + .def(py::init(), py::arg("width") = 2.0, py::arg("height") = 1.0) .def(py::init<::std::vector>> const>(), py::arg("points") = ::std::vector>> {}) ; }