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/types.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libxsd/libxsd/cxx/tree/types.hxx') diff --git a/libxsd/libxsd/cxx/tree/types.hxx b/libxsd/libxsd/cxx/tree/types.hxx index 4d6079a..1ec4243 100644 --- a/libxsd/libxsd/cxx/tree/types.hxx +++ b/libxsd/libxsd/cxx/tree/types.hxx @@ -1078,6 +1078,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + nmtokens& + operator= (const nmtokens&) = default; +#endif + /** * @brief Copy the instance polymorphically. * @@ -2559,6 +2564,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + idrefs& + operator= (const idrefs&) = default; +#endif + /** * @brief Copy the instance polymorphically. * @@ -2967,6 +2977,11 @@ namespace xsd // } +#ifdef XSD_CXX11 + qname& + operator= (const qname&) = default; +#endif + /** * @brief Copy the instance polymorphically. * @@ -3849,6 +3864,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + entities& + operator= (const entities&) = default; +#endif + /** * @brief Copy the instance polymorphically. * -- cgit v1.1