Skip to content

Commit

Permalink
Expected::operator bool を明示的な型変換とし、coutへ出力したときに誤ってbool型として出力されないよう変更
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyNelson314 committed Oct 8, 2024
1 parent 87e200a commit 125cc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Udon/Types/Expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ namespace Udon
}


constexpr operator bool() const noexcept
constexpr explicit operator bool() const noexcept
{
return hasValue;
}
Expand Down

0 comments on commit 125cc19

Please sign in to comment.