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 c54292e commit 737f6ddCopy full SHA for 737f6dd
libcxx/include/__expected/expected.h
@@ -402,7 +402,7 @@ class expected {
402
}
403
std::construct_at(std::addressof(__union_.__val_), std::forward<_Args>(__args)...);
404
__has_val_ = true;
405
- return *std::addressof(__union_.__val_);
+ return __union_.__val_;
406
407
408
template <class _Up, class... _Args>
@@ -415,7 +415,7 @@ class expected {
415
416
std::construct_at(std::addressof(__union_.__val_), __il, std::forward<_Args>(__args)...);
417
418
419
420
421
0 commit comments