Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalz800 committed May 8, 2024
1 parent 03cc83a commit 2fa2411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zpp_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -3441,7 +3441,7 @@ struct [[nodiscard]] value_or_errc

constexpr value_or_errc(value_or_errc && other) noexcept
{
if (other.is_value()) {
if (other.success()) {
if constexpr (!std::is_void_v<Type>) {
if constexpr (!std::is_reference_v<Type>) {
::new (std::addressof(m_return_value))
Expand Down

0 comments on commit 2fa2411

Please sign in to comment.