Closed fiesh closed 1 year ago
This in particular fixes polygon_set
's resize
and shrink
operations with C++20 which don't compile otherwise. (With clang
at least.)
@asydorchuk I know this library is basically dead, but including such a simple pull request would be great since otherwise it is incompatible with C++20, a fact that just isn't caught by any test so far I suppose.
These operators missing the
const
keyword made them incorrect code in C++20:Let
t.cpp
be the following file:Then with
clang-13
:Making the operators
const
resolves this issue.