Skip to content

Commit

Permalink
Fixes #666, regards #664: Removing a seemingly-redundant constructor …
Browse files Browse the repository at this point in the history
…of `poor_mans_optional<T>` from `const T&&`
  • Loading branch information
eyalroz committed Aug 21, 2024
1 parent 4301b7e commit f69368b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cuda/api/detail/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ struct poor_mans_optional {
return *this;
}

poor_mans_optional &operator=(const T &&value) noexcept(::std::is_nothrow_move_assignable<T>::value)
{
has_value_ = true;
maybe_value.value = ::std::move(value);
return *this;
}

poor_mans_optional &operator=(no_value_t)
{
has_value_ = false;
Expand Down

0 comments on commit f69368b

Please sign in to comment.