Skip to content

Commit 21870be

Browse files
Revert "Assign by l-value"
This reverts commit 53b95b2.
1 parent 5a3bbea commit 21870be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/msd/blocking_iterator.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ class blocking_writer_iterator {
141141
*
142142
* @return The iterator itself.
143143
*/
144-
blocking_writer_iterator& operator=(const value_type& value)
144+
template <typename T>
145+
blocking_writer_iterator& operator=(T&& value)
145146
{
146-
chan_->write(value);
147+
chan_->write(std::forward<T>(value));
147148
return *this;
148149
}
149150

0 commit comments

Comments
 (0)