From ac58ebce44e0ea4c4dabca3f4440eb21bfe3dd2a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 25 Dec 2020 11:59:14 +0300 Subject: Fix GCC 'implicitly-declared copy constructor is deprecated' warning Note that since c++11 the generation of the implicit copy constructor is deprecated for a class with a user-defined copy assignment operator. --- libxsd/libxsd/cxx/tree/containers.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libxsd/libxsd/cxx/tree/containers.hxx') diff --git a/libxsd/libxsd/cxx/tree/containers.hxx b/libxsd/libxsd/cxx/tree/containers.hxx index 07dff0d..43b70e4 100644 --- a/libxsd/libxsd/cxx/tree/containers.hxx +++ b/libxsd/libxsd/cxx/tree/containers.hxx @@ -858,6 +858,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + sequence& + operator= (const sequence&) = default; +#endif + public: void assign (size_type n, const T& x) @@ -1132,6 +1137,11 @@ namespace xsd : base_sequence (s) { } + +#ifdef XSD_CXX11 + sequence& + operator= (const sequence&) = default; +#endif }; -- cgit v1.1