Skip to content

Commit 486f25d

Browse files
Add comparison operator to VariableBackup
Related-To: NEO-5233 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
1 parent 4e1eb97 commit 486f25d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared/test/unit_test/helpers/variable_backup.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class VariableBackup {
2727
void operator=(const T &val) {
2828
*pValue = val;
2929
}
30+
template <typename T2>
31+
bool operator==(const T2 &val) const {
32+
return *pValue == val;
33+
}
3034

3135
private:
3236
T oldValue;

0 commit comments

Comments
 (0)