mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 00:34:14 +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;
|
||||
#else
|
||||
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)))
|
||||
T(std::forward<Args>(args)...);
|
||||
@ -1176,7 +1176,7 @@ T* construct_at( T* p, Args&&... args )
|
||||
using std::destroy_at;
|
||||
#else
|
||||
template<class T>
|
||||
void destroy_at(T* p)
|
||||
EIGEN_DEVICE_FUNC void destroy_at(T* p)
|
||||
{
|
||||
p->~T();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user