Skip to content

Commit b2e4b99

Browse files
committed
GCC fixes
1 parent 560f7d8 commit b2e4b99

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libcxx/test/libcxx/type_traits/desugars_to.compile.pass.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212

1313
struct Tag {};
1414
struct Operation {};
15+
16+
namespace std {
1517
template <>
16-
bool const std::__desugars_to_v<Tag, Operation> = true;
18+
bool const __desugars_to_v<Tag, Operation> = true;
19+
}
1720

1821
void tests() {
1922
// Make sure that __desugars_to is false by default

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
struct Operation {};
2222
struct Tag {};
23+
24+
namespace std {
2325
template <>
24-
bool const std::__desugars_to_v<Tag, Operation> = true;
26+
bool const __desugars_to_v<Tag, Operation> = true;
27+
}
2528

2629
static_assert(std::__desugars_to_v<Tag, Operation>, "something is wrong with the test");
2730

0 commit comments

Comments
 (0)