Fortunately, the broken compiler-generated copy methods are not yet
used, at least not in the GCC STL implementation I tested with. If there
is a compiler that needs them for std::queue, or if we start using them,
they will need to be implemented.
~_queued_read() {
cbdataReferenceDone(callback_data);
}
+ _queued_read(const _queued_read &qr) = delete;
+ _queued_read &operator =(const _queued_read &qr) = delete;
char *buf;
size_t size;
if (free_func && buf)
free_func(const_cast<char *>(buf));
}
+ _queued_write(const _queued_write &qr) = delete;
+ _queued_write &operator =(const _queued_write &qr) = delete;
char const *buf;
size_t size;