diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-08-11 17:52:43 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-08-11 17:52:43 +0200 |
commit | 6719e56b5bfe9ae4badc9a6e894c5824f663d62e (patch) | |
tree | 975a7bb2e9f1bf605814309fc7120cdb097b29ca /test/ref.cpp | |
parent | c13e9bbabf885abad49aafb77535192262355448 (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.cpp | 4 |
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++; } |