220 8333 <25282740.R0qdXlWiI6@tjmaciei-mobl2> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal: Default swap operation
Date: Wed, 01 Jan 2014 17:23:08 -0200
Lines: 28
Approved: news@gmane.org
Message-ID: <25282740.R0qdXlWiI6@tjmaciei-mobl2>
References: <c505e517-1c73-4486-b9dd-9ec15af1e649@isocpp.org> <68012381-8af4-4d62-a5a4-912c454fba96@isocpp.org> <52C4339B.20701@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1388604193 28530 80.91.229.3 (1 Jan 2014 19:23:13 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 1 Jan 2014 19:23:13 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBI6WSGLAKGQEJVP7RYY@isocpp.org Wed Jan 01 20:23:18 2014
Return-path: <std-proposals+bncBCB4TK757YBRBI6WSGLAKGQEJVP7RYY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBI6WSGLAKGQEJVP7RYY@isocpp.org>)
	id 1VyRNs-0004OS-TO
	for gclcip-std-proposals@m.gmane.org; Wed, 01 Jan 2014 20:23:16 +0100
Original-Received: by mail-wg0-f72.google.com with SMTP id k14sf22069289wgh.11
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 Jan 2014 11:23:16 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=dIWKF6eE/7C86N23fPeIoz/mkr47Kyzf/N502U39Dbc=;
        b=AN/eTXBbez43ICyyILu71w5u66x9Nl0MKxXN0lgMcznmofXaXBAuEfw38nYnmkNRPu
         tOOJGYoNYX1WSEv7y85oirX/eW3YtKcsBfW9kTyZdHRiqihIew3UXFOf5HI8xcbn4T5e
         V2DQKw3XmR4qZqOyHs4WhWK5YGh0mPQ2AVGY2kLbygFDJ2HxU8/NQIvRnHj6mf8EF8Dt
         0/YgzrMuzDN2oIRRoVtjuXnxOG6pndqXqySpVYQKUXs3XOZ46s7Ub5nuDipykyWq+R8h
         +sDaG5C4iPDa9mYN+qaORzq9VxmK/R8yhhsi2HXEfyAOlkYWMhV+q/Sbfm/wJhNULdsu
         Iztw==
X-Gm-Message-State: ALoCoQnCn2bc0x29NEo6pikcC8vA1U087S1kmPfrOJ1IEOmf2Tp4W3V3MRSC3uu3w73vrLYhDv+S
X-Received: by 10.14.216.131 with SMTP id g3mr29072519eep.2.1388604196524;
        Wed, 01 Jan 2014 11:23:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.90.115 with SMTP id bv19ls1857426wib.18.gmail; Wed, 01 Jan
 2014 11:23:15 -0800 (PST)
X-Received: by 10.180.198.43 with SMTP id iz11mr51992603wic.0.1388604195582;
        Wed, 01 Jan 2014 11:23:15 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id or5si20241182wjc.93.2014.01.01.11.23.15
        for <std-proposals@isocpp.org>;
        Wed, 01 Jan 2014 11:23:15 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl2.localnet (unknown [179.209.204.181])
	by gondolin.macieira.info (Postfix) with ESMTPSA id D58F111B59E
	for <std-proposals@isocpp.org>; Wed,  1 Jan 2014 11:23:14 -0800 (PST)
User-Agent: KMail/4.12 pre (Linux/3.9.10-100+i915fix.fc17.x86_64; KDE/4.11.60; x86_64; git-8054221; 2013-08-01)
In-Reply-To: <52C4339B.20701@gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8333
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8333>

On quarta-feira, 1 de janeiro de 2014 10:26:19, Matthew Woehlke wrote:
> Foo::~Foo() = default;

This requires more typing than:

Foo::~Foo() {}

And quite frankly I don't see the benefit. This destructor can't be from other 
translation units under the conditions you described. It could be inlined from 
the same translation unit, which the above accomplishes.

This destructor cannot be trivial either under your condition: if all of them 
were trivial, then you could have left the declaration in the header.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
