mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-14 00:51:52 +08:00
fix aligned_allocator::allocate interface
(transplanted from f82b3ea241baf9c8ba987812928361ff015dd21a )
This commit is contained in:
parent
f59b08f3bd
commit
c91fed1eec
@ -666,9 +666,9 @@ public:
|
|||||||
return std::numeric_limits<size_type>::max();
|
return std::numeric_limits<size_type>::max();
|
||||||
}
|
}
|
||||||
|
|
||||||
pointer allocate( size_type num, const_pointer* hint = 0 )
|
pointer allocate( size_type num, const void* hint = 0 )
|
||||||
{
|
{
|
||||||
static_cast<void>( hint ); // suppress unused variable warning
|
EIGEN_UNUSED_VARIABLE(hint);
|
||||||
return static_cast<pointer>( internal::aligned_malloc( num * sizeof(T) ) );
|
return static_cast<pointer>( internal::aligned_malloc( num * sizeof(T) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user