[Bf-blender-cvs] [357fa4a5bac] functions: equality operator for functions
Jacques Lucke
noreply at git.blender.org
Mon May 20 11:20:07 CEST 2019
Commit: 357fa4a5bacf454c0262c172491772936161b332
Author: Jacques Lucke
Date: Mon May 20 11:07:41 2019 +0200
Branches: functions
https://developer.blender.org/rB357fa4a5bacf454c0262c172491772936161b332
equality operator for functions
===================================================================
M source/blender/functions/core/function.hpp
===================================================================
diff --git a/source/blender/functions/core/function.hpp b/source/blender/functions/core/function.hpp
index 18f180fbafb..dd33846852b 100644
--- a/source/blender/functions/core/function.hpp
+++ b/source/blender/functions/core/function.hpp
@@ -90,6 +90,11 @@ class Function final : public RefCountedBase {
}
}
+ friend bool operator==(const Function &a, const Function &b)
+ {
+ return &a == &b;
+ }
+
void print();
/* Utility accessors */
More information about the Bf-blender-cvs
mailing list