Skip to content

Commit 135219e

Browse files
committed
Fix out parameter
1 parent c4ad4ec commit 135219e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bitstream/utility/parameter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ namespace bitstream
7070

7171
out(out&&) = delete;
7272

73-
template<typename U, typename = std::enable_if_t<std::is_assignable_v<T, U>>>
74-
BS_CONSTEXPR out& operator=(U&& arg) noexcept(std::is_nothrow_assignable_v<T, U>)
73+
template<typename U, typename = std::enable_if_t<std::is_assignable_v<T&, U>>>
74+
BS_CONSTEXPR out& operator=(U&& arg) noexcept(std::is_nothrow_assignable_v<T&, U>)
7575
{
7676
m_Value = std::forward<U>(arg);
7777

0 commit comments

Comments
 (0)