summaryrefslogtreecommitdiff
path: root/libxsd/libxsd/cxx/tree/elements.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-25 11:59:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-01-13 22:32:44 +0300
commitac58ebce44e0ea4c4dabca3f4440eb21bfe3dd2a (patch)
treec7648e37dff5aba76eff33f3009d052be9f518c1 /libxsd/libxsd/cxx/tree/elements.hxx
parent818bcfa0dbbc1ef48bc3fe1f0c14d12866c51ef2 (diff)
Fix GCC 'implicitly-declared copy constructor is deprecated' warningc++98-tests
Note that since c++11 the generation of the implicit copy constructor is deprecated for a class with a user-defined copy assignment operator.
Diffstat (limited to 'libxsd/libxsd/cxx/tree/elements.hxx')
-rw-r--r--libxsd/libxsd/cxx/tree/elements.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libxsd/libxsd/cxx/tree/elements.hxx b/libxsd/libxsd/cxx/tree/elements.hxx
index 7eb8211..8cdd0c3 100644
--- a/libxsd/libxsd/cxx/tree/elements.hxx
+++ b/libxsd/libxsd/cxx/tree/elements.hxx
@@ -1254,6 +1254,11 @@ namespace xsd
*/
simple_type (const simple_type& x, flags f = 0, container* c = 0);
+#ifdef XSD_CXX11
+ simple_type&
+ operator= (const simple_type&) = default;
+#endif
+
/**
* @brief Copy the instance polymorphically.
*
@@ -1617,6 +1622,11 @@ namespace xsd
{
}
+#ifdef XSD_CXX11
+ fundamental_base&
+ operator= (const fundamental_base&) = default;
+#endif
+
/**
* @brief Copy the instance polymorphically.
*