Skip to content

Commit a61a189

Browse files
Fwd ref
1 parent 76ba961 commit a61a189

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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=(reference 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)