aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/ref.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-08-11 17:52:43 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-08-11 17:52:43 +0200
commit6719e56b5bfe9ae4badc9a6e894c5824f663d62e (patch)
tree975a7bb2e9f1bf605814309fc7120cdb097b29ca /test/ref.cpp
parentc13e9bbabf885abad49aafb77535192262355448 (diff)
Ref<> objects must be nested by reference because they potentially store a temporary object
Diffstat (limited to 'test/ref.cpp')
-rw-r--r--test/ref.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ref.cpp b/test/ref.cpp
index 65b4f5a3e..f639d900b 100644
--- a/test/ref.cpp
+++ b/test/ref.cpp
@@ -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++;
}