220 8336 <CAFk2RUbQ0uHfJUJiVM3mDrpAZW9TZ+1yJkfQnZnQtO3gfHcvFw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Proposal: Default swap operation
Date: Wed, 1 Jan 2014 21:53:18 +0200
Lines: 24
Approved: news@gmane.org
Message-ID: <CAFk2RUbQ0uHfJUJiVM3mDrpAZW9TZ+1yJkfQnZnQtO3gfHcvFw@mail.gmail.com>
References: <c505e517-1c73-4486-b9dd-9ec15af1e649@isocpp.org>
	<-414611097405781448@gmail297201516>
	<52C456C5.8000407@gmail.com>
	<1429572.pH5kxD60ME@tjmaciei-mobl2>
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 1388605994 13681 80.91.229.3 (1 Jan 2014 19:53:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 1 Jan 2014 19:53:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBLXESGLAKGQETWQQTJI@isocpp.org Wed Jan 01 20:53:21 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRBLXESGLAKGQETWQQTJI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f71.google.com ([209.85.219.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBLXESGLAKGQETWQQTJI@isocpp.org>)
	id 1VyRqy-0003pO-Fz
	for gclcip-std-proposals@m.gmane.org; Wed, 01 Jan 2014 20:53:20 +0100
Original-Received: by mail-oa0-f71.google.com with SMTP id i4sf68490436oah.6
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 Jan 2014 11:53:19 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to: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=lY9l/TVt+F0rDPjP3mXTHP6nzCcOzJgW9mpbqA/diNg=;
        b=Ta7WgLybue0fCH7C59wis1jRmSVCsHXQ1fSLnXZxNxSvYW2g4PGMw5Ewe+rF2YJjRW
         ICdLJy4Mq77AFaGZWyxQTrUcXs+ky0OSsG3x8IChrjWNvbpoex6fpktNOpKBbD+GZBiW
         JGOSvZVjd4QnJqpY3iZOScWu7vNJKXHgR3M5lKOOxQkY0LaGSvXqX68vbXW1ehjpMJCb
         atbS/q+bmEvAWV0/WrN4sccA4GGAFroH77GanKbI4J2gActNUHruoQezguMYEAvgwmS7
         V7WBNNwVqT3zzKO7dOWbxBQMqSKThh+t8vAQ2E2Bv5XlQ+ItO8uhkdPusUXpktMU2KHL
         d/Ig==
X-Gm-Message-State: ALoCoQmewGoqHVwLtW4OroqcUCl4TbX47JM0bcaGIhTSrcc2imNLNrUQ2Lebuahw4azdUIQ0SNei
X-Received: by 10.42.210.68 with SMTP id gj4mr27770296icb.1.1388605999355;
        Wed, 01 Jan 2014 11:53:19 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.131.70 with SMTP id ok6ls3702517qeb.86.gmail; Wed, 01 Jan
 2014 11:53:18 -0800 (PST)
X-Received: by 10.224.129.200 with SMTP id p8mr27661147qas.29.1388605998837;
        Wed, 01 Jan 2014 11:53:18 -0800 (PST)
Original-Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [2607:f8b0:400d:c00::232])
        by mx.google.com with ESMTPS id h17si51435990qej.41.2014.01.01.11.53.18
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 01 Jan 2014 11:53:18 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c00::232 as permitted sender) client-ip=2607:f8b0:400d:c00::232;
Original-Received: by mail-qa0-f50.google.com with SMTP id i13so12721308qae.9
        for <std-proposals@isocpp.org>; Wed, 01 Jan 2014 11:53:18 -0800 (PST)
X-Received: by 10.224.127.131 with SMTP id g3mr101565812qas.98.1388605998728;
 Wed, 01 Jan 2014 11:53:18 -0800 (PST)
Original-Received: by 10.224.104.139 with HTTP; Wed, 1 Jan 2014 11:53:18 -0800 (PST)
In-Reply-To: <1429572.pH5kxD60ME@tjmaciei-mobl2>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c00::232 as
 permitted sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
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:8336
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8336>

On 1 January 2014 21:24, Thiago Macieira <thiago@macieira.org> wrote:
> On quarta-feira, 1 de janeiro de 2014 12:56:21, Matthew Woehlke wrote:
>> > Huh? I'm pretty sure this is already allowed.
>>
>> Hmm... gcc at least seems to allow it :-D. I guess I assumed it wasn't,
>> as I cant recall that any of the 'what's new in C++11' I've read
>> mentioned it...
>
> It is, but note that it doesn't emit a symbol for other translation units to
> see. The program is ill-defined if any translation unit trying to destroy Foo
> doesn't see the = default.


I don't see any wording in the standard that would require other TUs to
see the =default to use the function.

-- 

--- 
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/.

.
