Open lukaszgemborowski opened 7 months ago
While compiling a project with -std=c++20 using gcc this error pops up:
-std=c++20
libnest2d/include/libnest2d/nester.hpp:320:22: error: ambiguous overload for ‘operator!=’ (operand types are ‘libnest2d::Radians’ and ‘libnest2d::Radians’) 320 | if(rotation_ != rot) { | ~~~~~~~~~ ^~ ~~~ | | | | | libnest2d::Radians | libnest2d::Radians
There's no != operator defined for Radians object, therefore explicit cast to underlying double representation is required.
!=
Radians
double
PS. I am not sure what change in C++20 standard causes this problem.
While compiling a project with
-std=c++20
using gcc this error pops up:There's no
!=
operator defined forRadians
object, therefore explicit cast to underlyingdouble
representation is required.PS. I am not sure what change in C++20 standard causes this problem.