mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-03 01:04:23 +08:00
Fix construct_at compilation breakage on ROCm.
This commit is contained in:
parent
a3b64625e3
commit
2a6be5492f
@ -1160,7 +1160,7 @@ inline int queryTopLevelCacheSize()
|
|||||||
using std::construct_at;
|
using std::construct_at;
|
||||||
#else
|
#else
|
||||||
template<class T, class... Args>
|
template<class T, class... Args>
|
||||||
T* construct_at( T* p, Args&&... args )
|
EIGEN_DEVICE_FUNC T* construct_at( T* p, Args&&... args )
|
||||||
{
|
{
|
||||||
return ::new (const_cast<void*>(static_cast<const volatile void*>(p)))
|
return ::new (const_cast<void*>(static_cast<const volatile void*>(p)))
|
||||||
T(std::forward<Args>(args)...);
|
T(std::forward<Args>(args)...);
|
||||||
@ -1176,7 +1176,7 @@ T* construct_at( T* p, Args&&... args )
|
|||||||
using std::destroy_at;
|
using std::destroy_at;
|
||||||
#else
|
#else
|
||||||
template<class T>
|
template<class T>
|
||||||
void destroy_at(T* p)
|
EIGEN_DEVICE_FUNC void destroy_at(T* p)
|
||||||
{
|
{
|
||||||
p->~T();
|
p->~T();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user