From 0c4b311242f5ce61a6ae4374e490f5ad1524e5ad Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 14 Feb 2016 09:35:25 +0100 Subject: Fixed more visual studio warnings --- kernel/hashlib.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'kernel') diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 972a8b8d8..280b1693f 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -95,9 +95,7 @@ template struct hash_ops> { return a == b; } static inline unsigned int hash(std::pair a) { - hash_ops

p_ops; - hash_ops q_ops; - return mkhash(p_ops.hash(a.first), q_ops.hash(a.second)); + return mkhash(hash_ops

::hash(a.first), hash_ops::hash(a.second)); } }; @@ -111,8 +109,8 @@ template struct hash_ops> { } template static inline typename std::enable_if::type hash(std::tuple a) { - hash_ops>::type> element_ops; - return mkhash(hash(a), element_ops.hash(std::get(a))); + typedef hash_ops>::type> element_ops_t; + return mkhash(hash(a), element_ops_t::hash(std::get(a))); } }; -- cgit v1.2.3