Browse Source

Fix -Wdeprecated-copy errors detected by clang14

ref:7b522d0dad8f0d64dd508e61325124ea9d2ebf30
thegeorg 2 years ago
parent
commit
903697f538
2 changed files with 3 additions and 1 deletions
  1. 1 0
      library/cpp/yt/misc/guid.h
  2. 2 1
      util/generic/bitmap.h

+ 1 - 0
library/cpp/yt/misc/guid.h

@@ -55,6 +55,7 @@ struct TGuid
 
     //! Copies an existing guid.
     TGuid(const TGuid& other) = default;
+    TGuid& operator=(const TGuid& other) = default;
 
     //! Checks if TGuid is zero.
     bool IsEmpty() const;

+ 2 - 1
util/generic/bitmap.h

@@ -1093,7 +1093,8 @@ public:
     {
     }
 
-    TBitMap(const TBitMap<BitCount, TChunkType>&) = default;
+    TBitMap(const TBitMap&) = default;
+    TBitMap& operator=(const TBitMap&) = default;
 
     template <class T>
     TBitMap(const TBitMapOps<T>& bitmap)