220 36350 <80bbb75a-2a62-537a-3733-898225325a41@technion.ac.il> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Eyal Rozenberg <eyalroz@technion.ac.il>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Sub-objects and their copy ellision
Date: Tue, 26 Dec 2017 10:05:43 +0100
Lines: 30
Approved: news@gmane.org
Message-ID: <80bbb75a-2a62-537a-3733-898225325a41@technion.ac.il>
References: <caca241d-3498-b79b-fbf3-e57d8b7c3518@technion.ac.il>
 <1c6eff77-d71f-4dd7-8c13-f609460a03f0@isocpp.org>
 <c14fe13b-a658-e295-40a6-1465638d18db@technion.ac.il>
 <3ec0bd22-b228-4026-bb49-aec5102918c7@isocpp.org>
 <CAKqmYPbdMjxUOp9u+Ercx+eYjvUJvAn+CZe5EDpgGd4vaz47ag@mail.gmail.com>
 <924751e5-c880-42aa-95ab-99ef1050be2e@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1514279033 1469 195.159.176.226 (26 Dec 2017 09:03:53 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 26 Dec 2017 09:03:53 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101
 Thunderbird/57.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDHKZN7LR4ARB3NBRDJAKGQEQVCVBHY@isocpp.org Tue Dec 26 10:03:49 2017
Return-path: <std-proposals+bncBDHKZN7LR4ARB3NBRDJAKGQEQVCVBHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f200.google.com ([209.85.128.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDHKZN7LR4ARB3NBRDJAKGQEQVCVBHY@isocpp.org>)
	id 1eTl9I-0008Pa-Gx
	for gclcip-std-proposals@m.gmane.org; Tue, 26 Dec 2017 10:03:48 +0100
Original-Received: by mail-wr0-f200.google.com with SMTP id p8sf17105035wrh.17
        for <gclcip-std-proposals@m.gmane.org>; Tue, 26 Dec 2017 01:05:51 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1514279151; cv=pass;
        d=google.com; s=arc-20160816;
        b=rJy9kE3ENXm8vu7dZb6BfQIa/l8FwOsGh2n6k6jnEyUvUS7M8eY3ZtwcvM32kE/8ns
         nlyFfyicSZPuBbw+RLJIn+yAzmfsU23cuRxpDqPNfUofD+HT6MixGu9+2c9hS5IHAiit
         xAho042FBpVUDQv/Coi7Hy4Z2EXuXU+ZT9rm/c1drqegumX/w7Ue6qB7RexA4H2HZKP8
         lRlHZO1v00FO9fX3isIpRbl9kAVozKP+lPmb9ZAzB/BYB4L+tmOFZHN8mhfSFWYEjXwn
         pR1am4Q1FVvMxOsA3Cw59BYCX/OsurwBZ8wGzwdAWugaHo0vyil6PlsDYm/vPa1clmRf
         81rg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:content-language
         :in-reply-to:mime-version:user-agent:date:message-id:openpgp:from
         :references:to:subject:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=j8cEA1nI6EcuOx1rQrVZ+Lp3NXVTU+r0BnjM85/u1HY=;
        b=u4jUgVvSwDsMm7IPYRwuKSeYpn815GIKz8ZVvhNICr6+e8IPam1LdG8T3GVPFNRiFj
         XsSvhPE6FjgsJqFVnudlN05y5K1tLqh7lUVD1+ug7QCK/bEJKlLASfZugSx6gvoGhTNa
         SrxIbY9uQyIxAhkSSSpovojAr7t/9Kdsy8id6o809Cgla8X16sSL4t2mTkf1chIztQRa
         +0aQXlNotepsbVWkvrViDeyZwkyRYf3v75XTmGjujI53RDtw31TMQ9UyTt8EQZOBALZn
         cEsd4x8ljSRDx7MJRMTzj6Aw9ih84D2lFo3uHpm2DeRvka4mKp0csptGZYn3Itr2tgYM
         +U 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of srs0=uhtng=dw=technion.ac.il=eyalroz@cwi.nl designates 192.16.191.27 as permitted sender) smtp.mailfrom=SRS0=UhTng=DW=technion.ac.il=eyalroz@cwi.nl;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=technion.ac.il
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:openpgp:message-id:date:user-agent
         :mime-version:in-reply-to:content-language:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=j8cEA1nI6EcuOx1rQrVZ+Lp3NXVTU+r0BnjM85/u1HY=;
        b=WiYhDtiuLKOf1iW6kWmgPNDcRWXrHJSZq9TBqzH/pwVG4WW63j6Pc5h+NfbUNvHGfl
         VGk4FzITIfgITiMNvDbo9CMWpx5LN6ROHQrWHgwZ1ATHcaAUThoBdVVl05VmcVxFgUGm
         3YXSeVACLqUV1Efwxzrm4lOpa03NDKR3cf7jus54tDRFTFKSrpmZb818K9Grb0urkFtJ
         p66qB07jcBs8RMuCG832yEjFyAxvszsAVjco3R7z6ITRwkA2mZdeLgOp9ClVK17/3tsx
         hY2jvAV9IgAl2s8WYfH4CsTPf1VBkuIYytg2G3yY3OnhqANZWi2SUMlMMX95+RVqHEGg
         tJ+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:openpgp:message-id
         :date:user-agent:mime-version:in-reply-to:content-language
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=j8cEA1nI6EcuOx1rQrVZ+Lp3NXVTU+r0BnjM85/u1HY=;
        b=MSAlP0UxQPAQN16jWEAERuUtr3i5FuRqvlvxIzAQq4OVt8ZzX6PoPa7IaR6Fk7o7nP
         MnciHNK2umVIN8hDVRewq9lkHekW3AhyUzRjhNXzHGXuqZyH7/zR2XHkfdUKXh5sLxbC
         5fE0DxWF4TITbXLqxtYcUSbzrFjePUExoiaTuTyy1B0KsHTbCjjtJb8dFfG6IJRM9jcI
         vkXwb4bqD8lnXdehFcNlsjSDp/5xsKXlNVgXte8GJ1KYnp8o+0VPTn+sWwmdBKG8u7x/
         STxF7XzcwWhKY2RQxnQwyCai7STDZM7/D8Hh18GYwD+f0fjmFu6ICxSR76R5z3DHit+6
   
X-Gm-Message-State: AKGB3mI7pka83/NlIEyD9DNg/CwxEYxEZD8vRhzi1LEjo45Fx7BZ37Ro
	qOjhnUNfLfnEtv4Qcn3yhds=
X-Google-Smtp-Source: ACJfBovzIBYDXT9lEGHN0aBKwxslZ4kevs+nJ6aMBhiOj8urg8S6ID0Dlm9L8OBHPX3NebTxWaHCSw==
X-Received: by 10.80.195.1 with SMTP id a1mr6307605edb.8.1514279151225;
        Tue, 26 Dec 2017 01:05:51 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.80.212.18 with SMTP id t18ls5297789edh.6.gmail; Tue, 26 Dec
 2017 01:05:49 -0800 (PST)
X-Received: by 10.80.175.161 with SMTP id h30mr30739820edd.292.1514279149475;
        Tue, 26 Dec 2017 01:05:49 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1514279149; cv=none;
        d=google.com; s=arc-20160816;
        b=DqgZrDHZ2jZSy1EK5oub5DChwGGOtN5fanZeaD7le5wXH/Wq4t67Pdg6UnLi4uXk0f
         mA6MEtAcGMSGHfDHol+ov5v+KC/So4eqTFcJ+tBF3ABGnv8yw9bRdUMeja+CKTpuO6qu
         qJhvgBoiN9PBnG+fgY02yHp4iDaTlcbJ9rvp7q9W9uZ82T5GiwFNSpWXajxtB97CizKW
         Mw+9OW2g3uFnyfdHTRreS5UqtJGH+ZLvDt2oFNZVsaRTR8hzE/eclpKqJsanCbhp1Q4E
         uBxuL2CrIzDWYjSbgWscyKjKcMPERTo6yheS9LsfC6KBMmPJhxL/S5gyMVqvXchj3C3x
         ko0w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:openpgp:from:references:to:subject
         :arc-authentication-results;
        bh=EPw+HKSGoQ5EX84JHW25/Op9Ghmlf7AKliLurKQ8QgA=;
        b=hT90SqaXpAVOIRo9Yl6bQ3xypzDXobYol1rIj9GN/PZm5rLrvaV9gVjcvZbc1LetCr
         Dm4VVb1usv0gmHaypr2QnraispWSrKLHIXgklh7ndJ9/OybpWuO68V0ALsp6sqZCyF9r
         tImddaZMvWNhFb1jd8LE+PkXnLJBQW3x/RLWLqlm9gcxV1FpOsirrhjHpIWdIT6cB23i
         1pyXCEHbfiAyOGI9T0Z56YFXZjLcVLBihcoXsmm5mJB3b1o4nuRiQMVxmSrvejX+SSnB
         DTtBIm7yOzLXV2l5QtZ3FApEFCXi4oCyyCrULaNQqWBplt3g2u3YSHGHZ2vGGhuBXyEJ
         XaLQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of srs0=uhtng=dw=technion.ac.il=eyalroz@cwi.nl designates 192.16.191.27 as permitted sender) smtp.mailfrom=SRS0=UhTng=DW=technion.ac.il=eyalroz@cwi.nl;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=technion.ac.il
Original-Received: from fester.cwi.nl (fester.cwi.nl. [192.16.191.27])
        by mx.google.com with ESMTPS id q28si829239edb.504.2017.12.26.01.05.49
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 26 Dec 2017 01:05:49 -0800 (PST)
Received-SPF: pass (google.com: domain of srs0=uhtng=dw=technion.ac.il=eyalroz@cwi.nl designates 192.16.191.27 as permitted sender) client-ip=192.16.191.27;
Original-Received: from fester.cwi.nl (fester.cwi.nl [192.16.191.27])
	by fester.cwi.nl (8.14.4/8.12.3) with ESMTP id vBQ95nnR032467
	for <std-proposals@isocpp.org>; Tue, 26 Dec 2017 10:05:49 +0100
Original-Received: from [192.168.2.1] (ip565d4370.direct-adsl.nl [86.93.67.112] (may be forged))
	(authenticated bits=0)
	by fester.cwi.nl (8.14.4/8.12.3) with ESMTP id vBQ95moB032417
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO)
	for <std-proposals@isocpp.org>; Tue, 26 Dec 2017 10:05:49 +0100
Openpgp: preference=signencrypt
In-Reply-To: <924751e5-c880-42aa-95ab-99ef1050be2e@isocpp.org>
Content-Language: en-US
X-Original-Sender: eyalroz@technion.ac.il
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of srs0=uhtng=dw=technion.ac.il=eyalroz@cwi.nl designates
 192.16.191.27 as permitted sender) smtp.mailfrom=SRS0=UhTng=DW=technion.ac.il=eyalroz@cwi.nl;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=technion.ac.il
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36350
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36350>



On 12/25/17 8:15 PM, Nicol Bolas wrote:
> On Monday, December 25, 2017 at 1:12:19 PM UTC-5, Antony Polukhin wrote:
> 
> OK, so now we've added a fourth requirement: the function must be
> inlinable. Not declared `inline` or something that can be checked by
> actual C++ syntax, but some nebulous "inlineable".

The second "requirement" was not actually a requirement - and that's due
to the potential for inlining, as Antony has explained. If a function
call is avoided by inlining, then the compiler may figure out it the
caller+callee actually don't need the specific structuring of the
arguments to the callee.

> Why is this circumstance important enough to be /worth/ all of this hassle?

Because right now compilers are entirely-or-partially prevented from
applying a useful optimization in some relatively-common cases.

> Then why take the time to change the standard to allow it?

Because now it (seems to) prevent it, and definitely doesn't encourage it.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/80bbb75a-2a62-537a-3733-898225325a41%40technion.ac.il.

.
