mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
Silence some MSVC warnings
(cherry picked from commit 81c928ba55af78333d7446a55e3a0a36a4992c0e)
This commit is contained in:
parent
770ed0794e
commit
0cd4719f3e
@ -294,7 +294,7 @@ template<typename T> EIGEN_DEVICE_FUNC inline void destruct_elements_of_array(T
|
|||||||
*/
|
*/
|
||||||
template<typename T> EIGEN_DEVICE_FUNC inline T* construct_elements_of_array(T *ptr, std::size_t size)
|
template<typename T> EIGEN_DEVICE_FUNC inline T* construct_elements_of_array(T *ptr, std::size_t size)
|
||||||
{
|
{
|
||||||
std::size_t i;
|
std::size_t i=0;
|
||||||
EIGEN_TRY
|
EIGEN_TRY
|
||||||
{
|
{
|
||||||
for (i = 0; i < size; ++i) ::new (ptr + i) T;
|
for (i = 0; i < size; ++i) ::new (ptr + i) T;
|
||||||
@ -305,7 +305,6 @@ template<typename T> EIGEN_DEVICE_FUNC inline T* construct_elements_of_array(T *
|
|||||||
destruct_elements_of_array(ptr, i);
|
destruct_elements_of_array(ptr, i);
|
||||||
EIGEN_THROW;
|
EIGEN_THROW;
|
||||||
}
|
}
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user