From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29796 invoked by alias); 11 Oct 2016 06:48:20 -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 29721 invoked by uid 89); 11 Oct 2016 06:48:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=nicole, Nicole, HX-Envelope-From:sk:markus., Tel X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Oct 2016 06:47:58 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 10 Oct 2016 23:47:57 -0700 X-ExtLoop1: 1 Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga004.fm.intel.com with ESMTP; 10 Oct 2016 23:47:56 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.19]) by IRSMSX109.ger.corp.intel.com ([169.254.13.6]) with mapi id 14.03.0248.002; Tue, 11 Oct 2016 07:47:55 +0100 From: "Metzger, Markus T" To: Pedro Alves , "gdb-patches@sourceware.org" Subject: RE: [PATCH 1/3] Introduce gdb::unique_ptr Date: Tue, 11 Oct 2016 06:48:00 -0000 Message-ID: References: <1476117992-5689-1-git-send-email-palves@redhat.com> <1476117992-5689-2-git-send-email-palves@redhat.com> In-Reply-To: <1476117992-5689-2-git-send-email-palves@redhat.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00241.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Pedro Alves > Sent: Monday, October 10, 2016 6:47 PM > To: gdb-patches@sourceware.org > Subject: [PATCH 1/3] Introduce gdb::unique_ptr Hello Pedro, > Many make_cleanup uses in the code base are best eliminated by using a > "owning" smart pointer to manage ownership of the resource > automatically. >=20 > The question is _which_ smart pointer. >=20 > We have std::auto_ptr in C++03, but, as is collective wisdom by now, > that's too easy to misuse, and has therefore been deprecated in C++11 > and finally removed in C++17. Would it make sense to switch to C++11, instead? Or delay this work until we can make this move? Thanks, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928