Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lackhole committed Jun 18, 2024
1 parent 51fe86c commit b30484f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/preview/__optional/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ struct optional_base {
}
}

PREVIEW_CONSTEXPR_AFTER_CXX17 const value_type* operator->() const noexcept { std::addressof(storage_.value); }
PREVIEW_CONSTEXPR_AFTER_CXX17 value_type* operator->() noexcept { std::addressof(storage_.value); }
PREVIEW_CONSTEXPR_AFTER_CXX17 const value_type* operator->() const noexcept { return std::addressof(storage_.value); }
PREVIEW_CONSTEXPR_AFTER_CXX17 value_type* operator->() noexcept { return std::addressof(storage_.value); }

constexpr const value_type& operator*() const& noexcept { return storage_.value; }
constexpr value_type& operator*() & noexcept { return storage_.value; }
Expand Down

0 comments on commit b30484f

Please sign in to comment.