From d8377130b86ef7fa0ca997c3dd1d5260f16890ef Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 20 Aug 2019 07:36:38 +0200 Subject: add upstream patch for GCC 9 from https://github.com/datastax/cpp-driver/pull/453 --- 453.patch | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 453.patch (limited to '453.patch') diff --git a/453.patch b/453.patch new file mode 100644 index 0000000..0e1f8cb --- /dev/null +++ b/453.patch @@ -0,0 +1,57 @@ +From 1709ca129d0d1da3e473a0fcc3a90ccc409012bd Mon Sep 17 00:00:00 2001 +From: Eric Evans +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 > { + template + Deque(InputIt first, InputIt last, const Allocator& alloc = Allocator()) + : std::deque(first, last, alloc) {} +- +- Deque(const Deque& other) +- : std::deque(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(compare, alloc) {} + +- Map(const Map& other) +- : std::map(other) {} +- + template + 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(count, value) {} + +- Vector(const Vector& other) +- : std::vector(other) {} +- + template + Vector(InputIt first, InputIt last) + : std::vector(first, last) {} -- cgit