File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
libcxx/test/std/utilities/optional Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ constexpr bool test_concepts() {
47
47
constexpr bool test_types () {
48
48
const std::optional<char > opt{' a' };
49
49
std::optional<char > nonconst_opt{' n' };
50
-
50
+
51
51
assert ((std::is_same_v<typename decltype (opt.begin ())::value_type, char >));
52
52
assert ((std::is_same_v<typename decltype (opt.begin ())::reference, const char &>));
53
53
assert ((std::is_same_v<typename decltype (nonconst_opt.begin ())::value_type, char >));
54
54
assert ((std::is_same_v<typename decltype (nonconst_opt.begin ())::reference, char &>));
55
- return true ;
55
+ return true ;
56
56
}
57
57
58
58
constexpr bool test_size () {
@@ -112,7 +112,6 @@ constexpr bool test_reset() {
112
112
return true ;
113
113
}
114
114
115
-
116
115
int main (int , char **) {
117
116
// 1: optional::iterator and optional const_iterator satisfy contiguous_iterator and random_access_iterator
118
117
{
You can’t perform that action at this time.
0 commit comments