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

Zdeněk Kabeláč (@zdenek.kabelac) gitlab at mg.gitlab.com
Sat Oct 14 21:38:55 UTC 2023



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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20231014/f90e26bf/attachment-0001.htm>


More information about the lvm-devel mailing list