mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Ref<> objects must be nested by reference because they potentially store a temporary object
(transplanted from 6719e56b5b
)
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
|
||||
static int nb_temporaries;
|
||||
|
||||
inline void on_temporary_creation(int size) {
|
||||
inline void on_temporary_creation(int) {
|
||||
// here's a great place to set a breakpoint when debugging failures in this test!
|
||||
if(size!=0) nb_temporaries++;
|
||||
nb_temporaries++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user