Skip to content

Commit

Permalink
Merge pull request #13 from KredeGC/dev
Browse files Browse the repository at this point in the history
Fix out parameter
  • Loading branch information
KredeGC authored Aug 19, 2023
2 parents 15e32b5 + 135219e commit 9071320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/bitstream/utility/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ namespace bitstream

out(out&&) = delete;

template<typename U, typename = std::enable_if_t<std::is_assignable_v<T, U>>>
BS_CONSTEXPR out& operator=(U&& arg) noexcept(std::is_nothrow_assignable_v<T, U>)
template<typename U, typename = std::enable_if_t<std::is_assignable_v<T&, U>>>
BS_CONSTEXPR out& operator=(U&& arg) noexcept(std::is_nothrow_assignable_v<T&, U>)
{
m_Value = std::forward<U>(arg);

Expand Down

0 comments on commit 9071320

Please sign in to comment.