Skip to content

Commit cf87545

Browse files
committed
Addressed comment #83541 (comment)
1 parent 3073205 commit cf87545

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

libcxx/test/std/input.output/span.streams/helper_types.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ static_assert(!std::constructible_from<std::span<const wchar_t>, const NonReadOn
124124
static_assert(!std::convertible_to<const NonReadOnlySpan<wchar_t>, std::span<const wchar_t>>);
125125
#endif
126126

127-
// Mode types
128-
129-
struct NonMode {};
130-
131127
// Spanbuffer wrapper
132128

133129
template <typename CharT, typename TraitsT>

libcxx/test/std/input.output/span.streams/ispanstream/ispanstream.cons/ctor.span.mode.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void test_sfinae() {
4242
static_assert(!test_convertible<SpStream, const std::span<CharT>, std::ios_base::openmode>());
4343

4444
// Non-mode
45+
struct NonMode {};
4546
static_assert(!std::constructible_from<SpStream, const std::span<CharT>, const NonMode>);
4647
static_assert(!test_convertible<SpStream, const std::span<CharT>, const NonMode>());
4748
}

libcxx/test/std/input.output/span.streams/ospanstream/ospanstream.cons/ctor.span.mode.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ void test_sfinae() {
4040
static_assert(!test_convertible<SpStream, const std::span<CharT>, std::ios_base::openmode>());
4141

4242
// Non-mode
43+
struct NonMode {};
4344
static_assert(!std::constructible_from<SpStream, const std::span<CharT>, const NonMode>);
4445
static_assert(!test_convertible<SpStream, const std::span<CharT>, const NonMode>());
4546
}

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.cons/mode.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void test_sfinae() {
3939
static_assert(!test_convertible<SpanBuf, std::ios_base::openmode>());
4040

4141
// Non-mode
42+
struct NonMode {};
4243
static_assert(!std::constructible_from<SpanBuf, const NonMode>);
4344
static_assert(!test_convertible<SpanBuf, const NonMode>());
4445
}

libcxx/test/std/input.output/span.streams/spanbuf/spanbuf.cons/span.mode.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void test_sfinae() {
4141
static_assert(!test_convertible<SpanBuf, const std::span<CharT>, std::ios_base::openmode>());
4242

4343
// Non-mode
44+
struct NonMode {};
4445
static_assert(!std::constructible_from<SpanBuf, const std::span<CharT>, const NonMode>);
4546
static_assert(!test_convertible<SpanBuf, const std::span<CharT>, const NonMode>());
4647
}

libcxx/test/std/input.output/span.streams/spanstream/spanstream.cons/ctor.span.mode.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void test_sfinae() {
3939
static_assert(!test_convertible<SpStream, const std::span<CharT>, std::ios_base::openmode>());
4040

4141
// Non-mode
42+
struct NonMode {};
4243
static_assert(!std::constructible_from<SpStream, const std::span<CharT>, const NonMode>);
4344
static_assert(!test_convertible<SpStream, const std::span<CharT>, const NonMode>());
4445
}

0 commit comments

Comments
 (0)