Skip to content

Commit 07d026d

Browse files
committed
Value: Implement operator!=
1 parent bc84aad commit 07d026d

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
@@ -532,6 +532,8 @@ class LIBSCRATCHCPP_EXPORT Value
532532
return false;
533533
}
534534

535+
friend bool operator!=(const Value &v1, const Value &v2) { return !(v1 == v2); }
536+
535537
friend bool operator>(const Value &v1, const Value &v2)
536538
{
537539
if ((static_cast<int>(v1.m_type) < 0) || (static_cast<int>(v2.m_type) < 0)) {

0 commit comments

Comments
 (0)