Skip to content

Commit 5a05f1a

Browse files
Update tests/std/tests/P0220R1_string_view/test.cpp
1 parent a18c3f4 commit 5a05f1a

File tree

1 file changed

+1
-1
lines changed
  • tests/std/tests/P0220R1_string_view

1 file changed

+1
-1
lines changed

tests/std/tests/P0220R1_string_view/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static_assert(noexcept(g_example.swap(g_example_swap_target)), "swap() not noexc
127127
static_assert(noexcept(g_example.compare(string_view{})), "compare(basic_string_view) not noexcept");
128128
// compare(pos1, n1, basic_string_view) throws out_of_range
129129
// compare(pos1, n1, basic_string_view, pos2, n2) throws out_of_range
130-
static_assert(noexcept(g_example.compare("literal")), "compare(const charT*) not noexcept"); // strengthened
130+
static_assert(noexcept(g_example.compare("literal")), "compare(const charT*) noexcept (strengthened)");
131131
// compare(pos1, n1, const charT*) throws out_of_range and calls through char_traits
132132
// compare(pos1, n1, const charT*, n2) throws out_of_range and calls through char_traits
133133
static_assert(noexcept(g_example.find(string_view{})), "find(basic_string_view, offset) not noexcept");

0 commit comments

Comments
 (0)