Skip to content

Commit 918e269

Browse files
committed
Decouple test from std::equal_to
1 parent 72990d4 commit 918e269

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

libcxx/test/libcxx/utilities/function.objects/refwrap/desugars_to.compile.pass.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515

1616
#include <functional>
1717

18-
static_assert(std::__desugars_to_v<std::__equal_tag, std::equal_to<void>, int, int>,
19-
"something is wrong with the test");
18+
struct Operation {};
19+
struct Tag {};
20+
template <>
21+
bool const std::__desugars_to_v<Tag, Operation> = true;
22+
23+
static_assert(std::__desugars_to_v<Tag, Operation>, "something is wrong with the test");
2024

2125
// make sure we pass through reference_wrapper
22-
static_assert(std::__desugars_to_v<std::__equal_tag, std::reference_wrapper<std::equal_to<void> >, int, int>, "");
23-
static_assert(std::__desugars_to_v<std::__equal_tag, std::reference_wrapper<std::equal_to<void> const>, int, int>, "");
26+
static_assert(std::__desugars_to_v<Tag, std::reference_wrapper<Operation> >, "");
27+
static_assert(std::__desugars_to_v<Tag, std::reference_wrapper<Operation const> >, "");

0 commit comments

Comments
 (0)