Skip to content

Commit

Permalink
Fix out parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
KredeGC committed Aug 19, 2023
1 parent c4ad4ec commit 135219e
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 135219e

Please sign in to comment.