You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When PYBIND11_CPP17 is defined, detail::is_copy_constructible may give false positives for complex structures, leading to compiler errors.
py::cast(std::map<int, std::unique_ptr<int>>{}); // does compilepy::cast(std::map<int, std::map<int, std::unique_ptr<int>>>{}); // does not compile
Undefining the macro, respectively unguarding the third variant of is_copy_constructible solves this problem.
Tested with gcc and clang(libc++) and pybind v2.3.0.
The text was updated successfully, but these errors were encountered:
When PYBIND11_CPP17 is defined,
detail::is_copy_constructible
may give false positives for complex structures, leading to compiler errors.Undefining the macro, respectively unguarding the third variant of
is_copy_constructible
solves this problem.Tested with gcc and clang(libc++) and pybind v2.3.0.
The text was updated successfully, but these errors were encountered: