mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-09 07:00:27 +08:00
oops, #ifdef instead of #if ---> bug
This commit is contained in:
parent
f81479d392
commit
5d69c5102b
@ -92,7 +92,7 @@ void check_unalignedassert_good()
|
||||
delete[] y;
|
||||
}
|
||||
|
||||
#ifdef EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
#if EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
template<typename T>
|
||||
void check_unalignedassert_bad()
|
||||
{
|
||||
@ -109,7 +109,7 @@ void unalignedassert()
|
||||
check_unalignedassert_good<Good1>();
|
||||
check_unalignedassert_good<Good2>();
|
||||
check_unalignedassert_good<Good3>();
|
||||
#ifdef EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
#if EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
VERIFY_RAISES_ASSERT(check_unalignedassert_bad<Bad4>());
|
||||
VERIFY_RAISES_ASSERT(check_unalignedassert_bad<Bad5>());
|
||||
VERIFY_RAISES_ASSERT(check_unalignedassert_bad<Bad6>());
|
||||
@ -120,7 +120,7 @@ void unalignedassert()
|
||||
check_unalignedassert_good<Good9>();
|
||||
check_unalignedassert_good<Depends<true> >();
|
||||
|
||||
#ifdef EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
#if EIGEN_ARCH_WANTS_ALIGNMENT
|
||||
VERIFY_RAISES_ASSERT(check_unalignedassert_bad<Depends<false> >());
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user