From a695906cd814c4ac471fa4ac0f60f7a285437a09 Mon Sep 17 00:00:00 2001 From: Martin Ankerl Date: Sat, 18 Jul 2020 12:18:23 +0200 Subject: [PATCH] g++7, msvc compile fix --- src/test/unit/unit_hash_smart_ptr.cpp | 6 +++--- src/test/unit/unit_hash_string_view.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/unit/unit_hash_smart_ptr.cpp b/src/test/unit/unit_hash_smart_ptr.cpp index 4881d6d1..7d635fe4 100644 --- a/src/test/unit/unit_hash_smart_ptr.cpp +++ b/src/test/unit/unit_hash_smart_ptr.cpp @@ -13,11 +13,11 @@ void check(Ptr const& ptr) { TEST_CASE("unit_hash_smart_ptr") { check(std::unique_ptr{}); check(std::shared_ptr{}); - check(std::make_shared(123)); + check(std::make_shared(123U)); #if ROBIN_HOOD(CXX) >= ROBIN_HOOD(CXX14) - check(std::make_unique(123)); + check(std::make_unique(123U)); #else - check(std::unique_ptr{new uint64_t{123}}); + check(std::unique_ptr{new uint64_t{123U}}); #endif } diff --git a/src/test/unit/unit_hash_string_view.cpp b/src/test/unit/unit_hash_string_view.cpp index 26409f39..279d1af4 100644 --- a/src/test/unit/unit_hash_string_view.cpp +++ b/src/test/unit/unit_hash_string_view.cpp @@ -22,7 +22,7 @@ TEST_CASE("unit_hash_u32string") { str.push_back(5); REQUIRE(robin_hood::hash{}(str) == - robin_hood::hash{}(std::u32string_view{str})); + robin_hood::hash{}(str)); } #endif