From: Jonathan Wakely Date: Tue, 18 Mar 2025 21:16:46 +0000 (+0000) Subject: libgcobol: Simplify assignment operator by defaulting it X-Git-Tag: basepoints/gcc-16~615 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1a58dcb238c5a48e24f226c89287595ef7a9225;p=thirdparty%2Fgcc.git libgcobol: Simplify assignment operator by defaulting it libgcobol/ChangeLog: * common-defs.h (cbl_enabled_exceptions_t::operator=): Define as defaulted. --- diff --git a/libgcobol/common-defs.h b/libgcobol/common-defs.h index d052f58b6df..d2138770470 100644 --- a/libgcobol/common-defs.h +++ b/libgcobol/common-defs.h @@ -444,11 +444,7 @@ class cbl_enabled_exceptions_t : protected std::set bool empty() const { return std::set::empty(); } size_t size() const { return std::set::size(); } - cbl_enabled_exceptions_t& operator=( const cbl_enabled_exceptions_t& that ) { - std::set& self(*this); - self = that; - return *this; - } + cbl_enabled_exceptions_t& operator=( const cbl_enabled_exceptions_t& ) = default; }; extern cbl_enabled_exceptions_t enabled_exceptions;