[PATCH 6/7] thin-provisioning-tools: fix typename error on g++-4.4 and older

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix these errors:
unit-tests/array_block_t.cc:38: error: using 'typename' outside of template
unit-tests/array_block_t.cc:39: error: using 'typename' outside of template
unit-tests/array_block_t.cc:40: error: using 'typename' outside of template

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 unit-tests/array_block_t.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: thin-provisioning-tools/unit-tests/array_block_t.cc
===================================================================
--- thin-provisioning-tools.orig/unit-tests/array_block_t.cc	2014-11-08 01:42:09.000000000 +0100
+++ thin-provisioning-tools/unit-tests/array_block_t.cc	2014-11-08 01:42:18.000000000 +0100
@@ -35,9 +35,9 @@ using namespace testing;
 namespace {
 	uint64_t MAX_VALUE = 1000ull;
 	block_address const NR_BLOCKS = 1024;
-	typedef typename bcache::noop_validator noop_validator;
-	typedef typename block_manager<>::read_ref read_ref;
-	typedef typename block_manager<>::write_ref write_ref;
+	typedef bcache::noop_validator noop_validator;
+	typedef block_manager<>::read_ref read_ref;
+	typedef block_manager<>::write_ref write_ref;
 
 	// FIXME: lift to utils?
 	class simple_ref_counter {

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux