From c91fed1eeccef893a77368ecb771e93b8d57b150 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 (transplanted from f82b3ea241baf9c8ba987812928361ff015dd21a ) --- 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 8e4eccd95..206736c19 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -666,9 +666,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) ) ); }