ska-sa / spead2

Library for the Streaming Protocol for Exchange of Astronomical Data (SPEAD)
http://spead2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
23 stars 14 forks source link

Simplify buffer_reader construction #267

Closed bmerry closed 1 year ago

bmerry commented 1 year ago

It used to take a buffer_info by reference and move out of it, due to limitations in the original implementation of emplace_reader (I think involving pushing the work onto a worker thread). Perfect forwarding is no longer an issue, and buffer_info is non-copyable so there is no need to worry about an accidental copy.