From d78eb02627add5a050e5725e40209c6adc274e96 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 9 Apr 2009 21:22:02 +0000 Subject: [PATCH] add aligned_allocator operator == and != as suggested by Hauke Heibel --- Eigen/src/Core/util/Memory.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 1b377b1d9..e25df0049 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -336,6 +336,12 @@ public: { ei_aligned_free( p ); } + + bool operator!=(const aligned_allocator& other) const + { return false; } + + bool operator==(const aligned_allocator& other) const + { return true; } }; #endif // EIGEN_MEMORY_H