From 0f9f01a3216e4488dbfce202a40bd231a2d52466 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Tue, 19 Feb 2013 22:08:44 +0000 Subject: [PATCH] Fix for G++. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoids this error: ../src/muz_qe/heap_trie.h: In member function ‘virtual unsigned int heap_trie::leaf::num_leaves() const’: ../src/muz_qe/heap_trie.h:91:64: error: there are no arguments to ‘ref_count’ that depend on a template parameter, so a declaration of ‘ref_count’ must be available [-fpermissive] ../src/muz_qe/heap_trie.h:91:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) Signed-off-by: Christoph M. Wintersteiger --- src/muz_qe/heap_trie.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/muz_qe/heap_trie.h b/src/muz_qe/heap_trie.h index 25689e930..de07423b6 100644 --- a/src/muz_qe/heap_trie.h +++ b/src/muz_qe/heap_trie.h @@ -88,7 +88,7 @@ class heap_trie { out << " value: " << m_value; } virtual unsigned num_nodes() const { return 1; } - virtual unsigned num_leaves() const { return ref_count()>0?1:0; } + virtual unsigned num_leaves() const { return this->ref_count()>0?1:0; } }; typedef buffer, true, 2> children_t;