mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fix (false) warnings
This commit is contained in:
parent
487942bc22
commit
cb8c7850ba
@ -141,8 +141,10 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT
|
|||||||
|
|
||||||
.def(py::self | py::self)
|
.def(py::self | py::self)
|
||||||
.def(py::self & py::self)
|
.def(py::self & py::self)
|
||||||
.def(py::self |= py::self)
|
// .def(py::self |= py::self) // false clang warnings,
|
||||||
.def(py::self &= py::self)
|
// .def(py::self &= py::self) // see https://github.com/pybind/pybind11/issues/1893
|
||||||
|
.def("__ior__", [](BitArray& lhs, const BitArray& rhs) { return lhs |= rhs; }, py::is_operator())
|
||||||
|
.def("__iand__", [](BitArray& lhs, const BitArray& rhs) { return lhs &= rhs; }, py::is_operator())
|
||||||
.def(~py::self)
|
.def(~py::self)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -424,7 +424,8 @@ NGCORE_API_EXPORT void ExportGeom2d(py::module &m)
|
|||||||
.def(py::self-py::self)
|
.def(py::self-py::self)
|
||||||
.def(py::self*py::self)
|
.def(py::self*py::self)
|
||||||
.def(py::self+=py::self)
|
.def(py::self+=py::self)
|
||||||
.def(py::self-=py::self)
|
// .def(py::self-=py::self) // false clange warning, see https://github.com/pybind/pybind11/issues/1893
|
||||||
|
.def("__isub__", [](Solid2d& lhs, const Solid2d& rhs) { return lhs -= rhs; }, py::is_operator())
|
||||||
.def(py::self*=py::self)
|
.def(py::self*=py::self)
|
||||||
|
|
||||||
.def("Mat", &Solid2d::Mat)
|
.def("Mat", &Solid2d::Mat)
|
||||||
|
Loading…
Reference in New Issue
Block a user