Open huberemanuel opened 1 year ago
Me too:
./openvoronoi/src/offset_sorter.hpp:124:41: required from here
/usr/include/c++/12.2.1/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
770 | is_invocable_v<const _Compare&, const _Key&, const _Key&>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_tree.h:770:15: note: 'std::is_invocable_v<const ovd::OffsetLoopCompare&, const ovd::OffsetLoop&, const ovd::OffsetLoop&>' evaluates to false
From C++17 onwards this
https://github.com/aewallin/openvoronoi/blob/1af15b8bde45c0d52d8ad5531e9d7fc7af10efe2/src/offset_sorter.hpp#L81 probably needs to be
bool operator() (OffsetLoop l1, OffsetLoop l2) const {
I have the following error on my local machine (Ubuntu 22.04) and by forking and triggering the workflow.
Error: