summaryrefslogtreecommitdiffstats
path: root/453.patch
blob: 0e1f8cb4e3414d9170e98b453ffc17d4994f6b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From 1709ca129d0d1da3e473a0fcc3a90ccc409012bd Mon Sep 17 00:00:00 2001
From: Eric Evans <eevans@wikimedia.org>
Date: Fri, 16 Aug 2019 18:43:22 -0500
Subject: [PATCH] CPP-754: remove user-defined copy contructors

Under GCC9 `-Werror=deprecated-copy` makes an implicit declaration of
a copy contructor an error if a user-provided one exists.

See also: https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/C_002b_002b-Dialect-Options.html#index-Wdeprecated-copy
---
 src/deque.hpp  | 3 ---
 src/map.hpp    | 3 ---
 src/vector.hpp | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/src/deque.hpp b/src/deque.hpp
index f4671f180..5541c6c51 100644
--- a/src/deque.hpp
+++ b/src/deque.hpp
@@ -28,9 +28,6 @@ class Deque : public std::deque<T, internal::Allocator<T> > {
   template <class InputIt>
   Deque(InputIt first, InputIt last, const Allocator& alloc = Allocator())
       : std::deque<T, Allocator>(first, last, alloc) {}
-
-  Deque(const Deque& other)
-      : std::deque<T, Allocator>(other) {}
 };
 
 }} // namespace datastax::internal
diff --git a/src/map.hpp b/src/map.hpp
index 679cdfa5c..aa9999924 100644
--- a/src/map.hpp
+++ b/src/map.hpp
@@ -25,9 +25,6 @@ class Map
   explicit Map(const Compare& compare = Compare(), const Allocator& alloc = Allocator())
       : std::map<K, V, Compare, Allocator>(compare, alloc) {}
 
-  Map(const Map& other)
-      : std::map<K, V, Compare, Allocator>(other) {}
-
   template <class InputIt>
   Map(InputIt first, InputIt last, const Compare& compare = Compare(),
       const Allocator& alloc = Allocator())
diff --git a/src/vector.hpp b/src/vector.hpp
index 71114c75a..1d4204201 100644
--- a/src/vector.hpp
+++ b/src/vector.hpp
@@ -28,9 +28,6 @@ class Vector
   explicit Vector(size_t count, const T& value = T())
       : std::vector<T, Allocator>(count, value) {}
 
-  Vector(const Vector& other)
-      : std::vector<T, Allocator>(other) {}
-
   template <class InputIt>
   Vector(InputIt first, InputIt last)
       : std::vector<T, Allocator>(first, last) {}