We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9eb70 commit 8b828e9Copy full SHA for 8b828e9
libcxx/test/std/containers/sequences/array/at.pass.cpp
@@ -77,7 +77,8 @@ void test_exceptions()
77
}
78
79
try {
80
- TEST_IGNORE_NODISCARD array.at(-1);
+ using size_type = decltype(array)::size_type;
81
+ TEST_IGNORE_NODISCARD array.at(static_cast<size_type>(-1));
82
assert(false);
83
} catch (std::out_of_range const&) {
84
// pass
libcxx/test/std/containers/sequences/array/at_const.pass.cpp
@@ -73,7 +73,8 @@ void test_exceptions()
73
74
75
76
0 commit comments