Skip to content

Commit

Permalink
Box Methods: SFINAE Confuses Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Aug 12, 2024
1 parent 599a296 commit 06321a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Base/Box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,13 @@ void init_Box(py::module &m) {
.def_property_readonly("volume", &Box::volume)
.def_property_readonly("the_unit_box", &Box::TheUnitBox)
.def_property_readonly("is_square", &Box::isSquare)

.def("contains",
py::overload_cast< IntVect const & >(&Box::contains, py::const_),
[](Box const & bx, IntVect const & p){ return bx.contains(p); },
py::arg("p"),
"Returns true if argument is contained within Box."
)
.def("strictly_contains",
py::overload_cast< IntVect const & >(&Box::strictly_contains, py::const_),
[](Box const & bx, IntVect const & p){ return bx.strictly_contains(p); },
py::arg("p"),
"Returns true if argument is strictly contained within Box."
)
Expand Down

0 comments on commit 06321a8

Please sign in to comment.