C++ structs equal operator: invalid operands to binary expression
Advertisements Qt 5.15.5 msvc2019 compiler clang version 12.0.0 Target: x86_64-pc-windows-msvc struct FrameStyle { QColor color; // has both == and != operators Qt::PenStyle penStyle; // enum Distance padding; // has == operator bool operator==(const FrameStyle& other) { return other.color == color && other.penStyle == penStyle && other.padding == padding; } }; FrameStyle style; FrameStyle m_prevStyle;… Read More C++ structs equal operator: invalid operands to binary expression