[Git][lvmteam/lvm2][main] tests: old way to disable copy contructor

Zdeněk Kabeláč (@zdenek.kabelac) <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <652b0a6f462bb_2c1c974764814b4@gitlab-sidekiq-low-urgency-cpu-bound-v2-59d68cd46b-7gj6b.mail>

Zdeněk Kabeláč pushed to branch main at LVM team / lvm2


Commits:
5cc54458 by Zdenek Kabelac at 2023-10-14T23:37:38+02:00
tests: old way to disable copy contructor

Mark them private.

- - - - -


1 changed file:

- test/lib/brick-shelltest.h


Changes:

=====================================
test/lib/brick-shelltest.h
=====================================
@@ -110,10 +110,13 @@ public:
         ios.flags(f);
     }
 
-    IosFlagSaver(const IosFlagSaver &rhs) = delete;
-    IosFlagSaver& operator= (const IosFlagSaver& rhs) = delete;
+    //IosFlagSaver(const IosFlagSaver &rhs) = delete;
+    //IosFlagSaver& operator= (const IosFlagSaver& rhs) = delete;
 
 private:
+    IosFlagSaver(const IosFlagSaver &rhs); // disable copy contructore
+    IosFlagSaver& operator= (const IosFlagSaver& rhs); // old way
+
     std::ostream& ios;
     std::ios::fmtflags f;
 };



View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/5cc54458b71eaf9878f9b78b3bd3d99cd3e19251

-- 
View it on GitLab: https://gitlab.com/lvmteam/lvm2/-/commit/5cc54458b71eaf9878f9b78b3bd3d99cd3e19251
You're receiving this email because of your account on gitlab.com.

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.