diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-01-25 18:11:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-01-26 10:41:19 +0300 |
commit | 848f0c5b5b3ca4d747e00a66182c3d0edd8cc99b (patch) | |
tree | f91aae611773332639f8ff290597312c17382b38 /intern/cycles/util/util_vector.h | |
parent | 22afe88882e88b15df06a2b5ce3c596d31dd6365 (diff) |
Code cleanup: simpler and faster detection of BVH refit.
Diffstat (limited to 'intern/cycles/util/util_vector.h')
-rw-r--r-- | intern/cycles/util/util_vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_vector.h b/intern/cycles/util/util_vector.h index 67bf82b47a5..625c19c7c46 100644 --- a/intern/cycles/util/util_vector.h +++ b/intern/cycles/util/util_vector.h @@ -162,6 +162,11 @@ public: return memcmp(data_, other.data_, datasize_*sizeof(T)) == 0; } + bool operator!=(const array<T>& other) const + { + return !(*this == other); + } + void steal_data(array& from) { if(this != &from) { |