mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
In C++11 destructors do not throw by default (fix CommaInitializer unit test)
This commit is contained in:
parent
ab41652d81
commit
b192e29eae
@ -105,6 +105,9 @@ struct CommaInitializer
|
|||||||
|
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
inline ~CommaInitializer()
|
inline ~CommaInitializer()
|
||||||
|
#if defined VERIFY_RAISES_ASSERT && defined EIGEN_EXCEPTIONS
|
||||||
|
throw(Eigen::eigen_assert_exception)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
eigen_assert((m_row+m_currentBlockRows) == m_xpr.rows()
|
eigen_assert((m_row+m_currentBlockRows) == m_xpr.rows()
|
||||||
&& m_col == m_xpr.cols()
|
&& m_col == m_xpr.cols()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user