You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/11/08 18:52:12 UTC

[trafficserver] branch 9.1.x updated: Fix deprecated-copy warning (#8434)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.1.x by this push:
     new a868193  Fix deprecated-copy warning (#8434)
a868193 is described below

commit a868193e255ccfad19f3bdd8bd64e9d50acd3369
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Wed Oct 20 08:12:31 2021 +0900

    Fix deprecated-copy warning (#8434)
    
    (cherry picked from commit bf975cd9aa20937c2d539a2f8898e365d53bbb10)
---
 include/tscore/HTTPVersion.h | 2 ++
 include/tscpp/util/MemSpan.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/include/tscore/HTTPVersion.h b/include/tscore/HTTPVersion.h
index 54d9aea..37dc853 100644
--- a/include/tscore/HTTPVersion.h
+++ b/include/tscore/HTTPVersion.h
@@ -28,6 +28,8 @@ class HTTPVersion
 public:
   HTTPVersion() {}
   HTTPVersion(HTTPVersion const &that) = default;
+  HTTPVersion &operator=(const HTTPVersion &) = default;
+
   explicit HTTPVersion(int version);
   constexpr HTTPVersion(uint8_t ver_major, uint8_t ver_minor);
 
diff --git a/include/tscpp/util/MemSpan.h b/include/tscpp/util/MemSpan.h
index ae65c85..c234265 100644
--- a/include/tscpp/util/MemSpan.h
+++ b/include/tscpp/util/MemSpan.h
@@ -237,6 +237,7 @@ public:
 
   /// Copy constructor.
   constexpr MemSpan(self_type const &that) = default;
+  MemSpan &operator=(const MemSpan &) = default;
 
   /** Cross type copy constructor.
    *