From f82b3ea241baf9c8ba987812928361ff015dd21a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 14 Jun 2011 08:50:25 +0200 Subject: [PATCH] fix aligned_allocator::allocate interface --- Eigen/src/Core/util/Memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index f9bafab57..285be9ccc 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -687,9 +687,9 @@ public: return std::numeric_limits::max(); } - pointer allocate( size_type num, const_pointer* hint = 0 ) + pointer allocate( size_type num, const void* hint = 0 ) { - static_cast( hint ); // suppress unused variable warning + EIGEN_UNUSED_VARIABLE(hint); return static_cast( internal::aligned_malloc( num * sizeof(T) ) ); }