mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix VERIFY_EVALUATION_COUNT(EXPR,N) with a complex expression as N
This commit is contained in:
parent
2b2cd85694
commit
37f4bdd97d
@ -122,8 +122,8 @@ inline void on_temporary_creation(long int size) {
|
|||||||
#define VERIFY_EVALUATION_COUNT(XPR,N) {\
|
#define VERIFY_EVALUATION_COUNT(XPR,N) {\
|
||||||
nb_temporaries = 0; \
|
nb_temporaries = 0; \
|
||||||
XPR; \
|
XPR; \
|
||||||
if(nb_temporaries!=N) { std::cerr << "nb_temporaries == " << nb_temporaries << "\n"; }\
|
if(nb_temporaries!=(N)) { std::cerr << "nb_temporaries == " << nb_temporaries << "\n"; }\
|
||||||
VERIFY( (#XPR) && nb_temporaries==N ); \
|
VERIFY( (#XPR) && nb_temporaries==(N) ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user