From: Alex Rousskov Date: Tue, 20 Sep 2016 22:15:08 +0000 (-0600) Subject: Cleanup cleanup: Do not silently violate The Big Three after r14743. X-Git-Tag: SQUID_4_0_15~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4284ca55332c1c872afe9afc734324f6fc3a322c;p=thirdparty%2Fsquid.git Cleanup cleanup: Do not silently violate The Big Three after r14743. 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. --- diff --git a/src/fs/ufs/UFSStoreState.h b/src/fs/ufs/UFSStoreState.h index ebbacbdf10..f5d0bfdcf2 100644 --- a/src/fs/ufs/UFSStoreState.h +++ b/src/fs/ufs/UFSStoreState.h @@ -59,6 +59,8 @@ protected: ~_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; @@ -88,6 +90,8 @@ protected: if (free_func && buf) free_func(const_cast(buf)); } + _queued_write(const _queued_write &qr) = delete; + _queued_write &operator =(const _queued_write &qr) = delete; char const *buf; size_t size;