Ref<> objects must be nested by reference because they potentially store a temporary object

(transplanted from 6719e56b5b
)
This commit is contained in:
Gael Guennebaud
2013-08-11 17:52:43 +02:00
parent 47a7de7b53
commit b56348046f
2 changed files with 5 additions and 4 deletions

View File

@@ -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++;
}