Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
g++7, msvc compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Jul 18, 2020
1 parent f6894f3 commit a695906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/test/unit/unit_hash_smart_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ void check(Ptr const& ptr) {
TEST_CASE("unit_hash_smart_ptr") {
check(std::unique_ptr<uint64_t>{});
check(std::shared_ptr<uint64_t>{});
check(std::make_shared<uint64_t>(123));
check(std::make_shared<uint64_t>(123U));

#if ROBIN_HOOD(CXX) >= ROBIN_HOOD(CXX14)
check(std::make_unique<uint64_t>(123));
check(std::make_unique<uint64_t>(123U));
#else
check(std::unique_ptr<uint64_t>{new uint64_t{123}});
check(std::unique_ptr<uint64_t>{new uint64_t{123U}});
#endif
}
2 changes: 1 addition & 1 deletion src/test/unit/unit_hash_string_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST_CASE("unit_hash_u32string") {
str.push_back(5);

REQUIRE(robin_hood::hash<std::u32string>{}(str) ==
robin_hood::hash<std::u32string_view>{}(std::u32string_view{str}));
robin_hood::hash<std::u32string_view>{}(str));
}

#endif

0 comments on commit a695906

Please sign in to comment.