Closed serge-sans-paille closed 4 years ago
This same issue came up for me when upgrading pybind11. Here's a test program I made to try to find the problem, in which changing pybind versions, holding everything else constant, is sufficient to trigger compiler errors like this one. The working and broken versions of pybind11 I used are 2.2.4 and 2.4.0 respectively.
object operator/=(object_api const &other) const
Yes, that is a very generic overload in pybind11.
@wjakob do you know if it would be possible to make this a bit more restricive so that it does not conflict with other py:object implementing their operators?
The following snippet fails to compile
while this one is OK
tested with clang 6 and gcc 8, xtensor 0.20.8 and xtensor-python 0.23.1
Error log: