From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77967 invoked by alias); 10 May 2018 19:12:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 77847 invoked by uid 89); 10 May 2018 19:12:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 May 2018 19:12:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id DE65B1177CE; Thu, 10 May 2018 15:12:07 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wFlqQ3jU+EsR; Thu, 10 May 2018 15:12:07 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id ADB40117677; Thu, 10 May 2018 15:12:07 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id DF9068304F; Thu, 10 May 2018 12:12:05 -0700 (PDT) Date: Thu, 10 May 2018 19:26:00 -0000 From: Joel Brobecker To: Sergio Durigan Junior Cc: gdb-patches@sourceware.org Subject: Re: [RFA] inadvertent language switch during breakpoint_re_set_one Message-ID: <20180510191205.qpryd5qn6ta2ie5x@adacore.com> References: <1525976353-67414-1-git-send-email-brobecker@adacore.com> <87sh6zxsu6.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sh6zxsu6.fsf@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2018-05/txt/msg00251.txt.bz2 > > + scoped_restore_current_language_mode > > + (const scoped_restore_current_language_mode &) = delete; > > + scoped_restore_current_language_mode &operator= > > + (const scoped_restore_current_language_mode &) = delete; > > I think you can use DISABLE_COPY_AND_ASSIGN here. Thanks for the tip, Sergio. If the patch is accepted, I'll adjust to include a first patch which ajusts class scoped_restore_current_language to use DISABLE_COPY_AND_ASSIGN, and then adjust my patch on top of it to do the same. -- Joel