Skip to content

Commit e8c4f45

Browse files
committed
Value: Implement operator!=
1 parent 9a6c0e7 commit e8c4f45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/scratchcpp/value.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ class LIBSCRATCHCPP_EXPORT Value : public ValueVariant
455455
return false;
456456
}
457457

458+
friend bool operator!=(const Value &v1, const Value &v2) { return !(v1 == v2); }
459+
458460
friend bool operator>(const Value &v1, const Value &v2)
459461
{
460462
if ((static_cast<int>(v1.m_type) < 0) || (static_cast<int>(v2.m_type) < 0)) {

0 commit comments

Comments
 (0)