Skip to content

Commit

Permalink
Merge pull request #6 from adriendelsalle/fix-bindings-linux-64
Browse files Browse the repository at this point in the history
Fix Python bindings compilation on `linux-64`
  • Loading branch information
ssg-aero authored Jul 4, 2022
2 parents db2a108 + b620bc9 commit 2be9e73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/yamsbind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ PYBIND11_MODULE(yams, m)
.def(py::init<size_t, size_t>())
.def(
"__call__",
// py::overload_cast<size_t, size_t>(&Array2d<T>::operator(), py::const_),
py::overload_cast<size_t, size_t>(&MeridionalGrid<T>::operator()),
[](const MeridionalGrid<T>& self, std::size_t i, std::size_t j) -> const MeridionalGridPoint<T>&
{
return self(i, j);
},
py::arg("i"), py::arg("j"),
py::return_value_policy::reference
)
Expand Down

0 comments on commit 2be9e73

Please sign in to comment.