Skip to content

Commit

Permalink
fix P0088R3_variant and report the issue to Devcomm
Browse files Browse the repository at this point in the history
  • Loading branch information
fsb4000 committed Jul 31, 2022
1 parent 8690746 commit 29c5609
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/std/tests/P0088R3_variant/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ int run_test() {

// template <class... Types> struct hash<variant<Types...>>;
// template <> struct hash<monostate>;

#include <cassert>
#include <type_traits>
#include <variant>
Expand Down Expand Up @@ -1180,16 +1179,20 @@ struct hash<::hash::B> {
namespace hash {
void test_hash_variant_enabled() {
{
#ifndef __EDG__ // TRANSITION, DevCom-10107834
test_hash_enabled_for_type<std::variant<int> >();
test_hash_enabled_for_type<std::variant<int*, long, double, const int> >();
#endif // // TRANSITION, DevCom-10107834
}
{
test_hash_disabled_for_type<std::variant<int, A>>();
test_hash_disabled_for_type<std::variant<const A, void*>>();
}
{
#ifndef __EDG__ // TRANSITION, DevCom-10107834
test_hash_enabled_for_type<std::variant<int, B>>();
test_hash_enabled_for_type<std::variant<const B, int>>();
#endif // TRANSITION, DevCom-10107834
}
}

Expand Down

0 comments on commit 29c5609

Please sign in to comment.