diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-25 11:59:14 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-25 13:45:49 +0300 |
commit | 7eaca4def408b73fdbc3362242569416341a24a3 (patch) | |
tree | 84933cb6d15906fe56576550d5f54beb4cee1d7b /libxsd/xsd/cxx/tree/types.hxx | |
parent | fea8db080353e408a38ad9b66b50b1c9dfaf96de (diff) |
Fix GCC 'implicitly-declared operator=() is deprecated' warning
Note that since c++11 the generation of the implicit copy assignment operator
is deprecated for a class with a user-defined copy constructor.
Diffstat (limited to 'libxsd/xsd/cxx/tree/types.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/types.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/tree/types.hxx b/libxsd/xsd/cxx/tree/types.hxx index 34eabd9..30b2209 100644 --- a/libxsd/xsd/cxx/tree/types.hxx +++ b/libxsd/xsd/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. * |