diff --git a/test/unordered/init_type_insert_tests.cpp b/test/unordered/init_type_insert_tests.cpp index 2de991fb..1fc2f229 100644 --- a/test/unordered/init_type_insert_tests.cpp +++ b/test/unordered/init_type_insert_tests.cpp @@ -21,7 +21,9 @@ struct move_only } }; -template <> struct std::hash +namespace std{ + +template <> struct hash { std::size_t operator()(move_only const& mo) const noexcept { @@ -29,6 +31,8 @@ template <> struct std::hash } }; +} // namespace std + struct raii_tracker { static int move_constructs; @@ -59,7 +63,9 @@ struct raii_tracker } }; -template <> struct std::hash +namespace std{ + +template <> struct hash { std::size_t operator()(raii_tracker const& rt) const noexcept { @@ -67,6 +73,8 @@ template <> struct std::hash } }; +} // namespace std + int raii_tracker::move_constructs = 0; int raii_tracker::copy_constructs = 0;