We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76ba961 commit a61a189Copy full SHA for a61a189
1 file changed
include/msd/blocking_iterator.hpp
@@ -141,9 +141,10 @@ class blocking_writer_iterator {
141
*
142
* @return The iterator itself.
143
*/
144
- blocking_writer_iterator& operator=(reference value)
+ template <typename T>
145
+ blocking_writer_iterator& operator=(T&& value)
146
{
- chan_->write(value);
147
+ chan_->write(std::forward<T>(value));
148
return *this;
149
}
150
0 commit comments