diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-25 11:59:14 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 22:20:33 +0300 |
commit | b083417c9111b5c10234a7218e046ea3b55381fa (patch) | |
tree | 25de67c0b621a073c11f63bc37fbbc3769b6c6ef /libxsd/xsd/cxx/tree/list.hxx | |
parent | fe18c518cf476ea5a2c3eede8bf6b994ec3105f2 (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/list.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/list.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/tree/list.hxx b/libxsd/xsd/cxx/tree/list.hxx index f83297a..c44c882 100644 --- a/libxsd/xsd/cxx/tree/list.hxx +++ b/libxsd/xsd/cxx/tree/list.hxx @@ -62,6 +62,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + list& + operator= (const list&) = default; +#endif + public: list (const xercesc::DOMElement&, flags = 0, container* c = 0); @@ -112,6 +117,11 @@ namespace xsd { } +#ifdef XSD_CXX11 + list& + operator= (const list&) = default; +#endif + public: list (const xercesc::DOMElement&, flags = 0, container* c = 0); |