Skip to content

Commit

Permalink
[Util] Allow only implicit conversion to a reference of type T
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora Buschauer committed May 14, 2024
1 parent c05d0fc commit 96ce63a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/mutable/util/OptField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ struct OptField
requires std::convertible_to<U, T>
OptField(U &&value) : value_(std::forward<U>(value)) { }

operator T() const { return value_; }
operator T&() { return value_; }
operator const T&() const { return value_; }

Expand Down

0 comments on commit 96ce63a

Please sign in to comment.