File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/std/utilities/optional/optional.object/optional.object.assign Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ struct __optional_storage_base : __optional_destruct_base<_Tp> {
418418 }
419419
420420 template <class _Up >
421- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val (_Up&& __val){
421+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val (_Up&& __val) {
422422 this ->__get () = std::forward<_Up>(__val);
423423 }
424424};
@@ -476,7 +476,7 @@ struct __optional_storage_base<_Tp, true> {
476476 }
477477
478478 template <class _Up >
479- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val (_Up&& __val){
479+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __assign_from_val (_Up&& __val) {
480480 __value_ = std::addressof (__val);
481481 }
482482};
Original file line number Diff line number Diff line change @@ -284,8 +284,8 @@ constexpr void test_with_ref() {
284284 optional<T&> opt{t};
285285 opt = t2;
286286
287- assert (std::addressof (*opt) != std::addressof (t));
288- assert (std::addressof (*opt) == std::addressof (t2));
287+ assert (std::addressof (*opt) != std::addressof (t));
288+ assert (std::addressof (*opt) == std::addressof (t2));
289289 }
290290 // test that reassigning the reference for an optional<T&> doesn't affect the objet it's holding a reference to
291291 {
You can’t perform that action at this time.
0 commit comments