]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup cleanup: Do not silently violate The Big Three after r14743.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 20 Sep 2016 22:15:08 +0000 (16:15 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 20 Sep 2016 22:15:08 +0000 (16:15 -0600)
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.

src/fs/ufs/UFSStoreState.h

index ebbacbdf10a3e1daebcacab6cddea610e1ff762b..f5d0bfdcf289f050a56280752127304319e99e7b 100644 (file)
@@ -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<char *>(buf));
         }
+        _queued_write(const _queued_write &qr) = delete;
+        _queued_write &operator =(const _queued_write &qr) = delete;
 
         char const *buf;
         size_t size;