220 36363 <CAFk2RUY3XQiLzsSTiZ6QECf7EK=yEoq+3JGA05783AgbqHVMOg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default assignment operators for std::pair and std::tuple
Date: Tue, 26 Dec 2017 22:11:19 +0200
Lines: 35
Approved: news@gmane.org
Message-ID: <CAFk2RUY3XQiLzsSTiZ6QECf7EK=yEoq+3JGA05783AgbqHVMOg@mail.gmail.com>
References: <ceb89ead-99c9-41fc-a40e-876eac97a6f1@isocpp.org>
 <CAFk2RUab3JK=U0vrxZ6d0r3vaY=-64usQyPHCOf9=V1v-T=XTA@mail.gmail.com>
 <4110e47f-a021-4ccc-9e03-53e4ebdb8c21@isocpp.org> <4605434.q3o9RnjlYE@tjmaciei-mobl1>
 <5300cf40-f7db-4eb6-ad36-4742855124ae@isocpp.org> <CAFk2RUaPfYJCxWTB54eFNBw559Av6XKaLUciixB77by3uLb6eQ@mail.gmail.com>
 <fcf44c66-1097-4242-a265-1629aaf24ebb@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 1514318963 30506 195.159.176.226 (26 Dec 2017 20:09:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 26 Dec 2017 20:09:23 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRB2GZRLJAKGQEE2KMVXI@isocpp.org Tue Dec 26 21:09:19 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRB2GZRLJAKGQEE2KMVXI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB2GZRLJAKGQEE2KMVXI@isocpp.org>)
	id 1eTvXK-0007VC-VH
	for gclcip-std-proposals@m.gmane.org; Tue, 26 Dec 2017 21:09:19 +0100
Original-Received: by mail-oi0-f69.google.com with SMTP id u128sf16444842oib.8
        for <gclcip-std-proposals@m.gmane.org>; Tue, 26 Dec 2017 12:11:21 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1514319081; cv=pass;
        d=google.com; s=arc-20160816;
        b=wkx+GAXiVnkfkmDc1EPRmV4uq0lr1lMc9pGGzMAScQid84dWXEtwteQz5pOyY0GEFB
         WTFFGwIi258REpKR5xp84z6t/41jmcKESeT8uAqmH0y/t8gIqT9H1Co1KoTWSb30onbW
         FMipmbkKiK+K0eHkG5BrhExuVqTAJcnS53eq+rBGYOEiLNLSc2lMDfrpqyR/SQ9OVwW9
         lGLEOxcqEPraRYcTJni252Qx7/rvuQQ7zc1x6nWLvb2dFMqZ5fBRJ+cFVPDOFmaQfG1W
         D9bD/4Dw7xkgHYcxsP2+ucn6vN6QE6wWP0MDgoXDKQCQazREmM9M0YLn2l80DOQpXVMq
         ceOQ==
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:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=eMU5TMiWJeaUzMsmwOpEPRRFlLb7NyqpvIU/AgY8/Pg=;
        b=sRYE8aI+bWFjbm/Zkq3ZoZzKNscSGwIanqI6ukLVG5Ntfrr/VMAWxpAnHSc0D/ocFd
         ZKV8/1kEs/w0T8r6VaqNPQl1c20dsg5U1NNp5QitdnQ+ian0TQ1KIIq/HiZuHLJYDPXT
         g0w4hp5NnrL2sAS69uuEb2vnWaMVPIcw98qQJKw7pw+Hgy8Z9Nww8XUCHPTIup873DU1
         rBtdlVz5MCGoiKiDmVjBBR7Lxatlg86Y3VsyvdZKrNZDxCgARCOWPm6s+f9nXeVm9Ju0
         zhsNpdSWKtNurjSpOssmVCwpBedP8YPcZYTNUVFI0I3SvnxhkAdzlQpmQegFzRmjVqbb
         Yw3A==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=fo3U4BOG;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject: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;
        bh=eMU5TMiWJeaUzMsmwOpEPRRFlLb7NyqpvIU/AgY8/Pg=;
        b=hu8bLy7Xf4nGcEnWILy21ZOcepcKbursA6AQgNIjbpr+N+g8GPeYI6eBY6qJNrLg7f
         cqKiJPdK3Sog4jGr889xOMj+cwVodcVpTKSlW7yONirFuZpT8eIebtyf0VSuua5xVXPm
         9APAtkEdowCww4spbTHACnw/i50gzBX5ByWJMOmP1AEPDYqF9aR5w2ya/DCDorJ1Ktwj
         rx0BLB6KulPadK5a50FsK3R5KFHzTqSfqZ3lI3oWO8oRZ25xofD4QoNEeOHJM5SznRWa
         iwNfPjQFxcIOU/8YliuIUiVlnOIoEj4maMWS0OvfpRN+QU/oYRQJwQgu8VS893xcGn2a
         obFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to: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=eMU5TMiWJeaUzMsmwOpEPRRFlLb7NyqpvIU/AgY8/Pg=;
        b=VkxP0c1buj0Pj9yR0PbefRVzTLqC3P1rLwmkMbpnAovHeegX9huwcFAfc02qmF9fxT
         XwZGj2t9xxhgBkhiA56u4A6Vkrav+Sy+qFcNbaZobQcNCD56cGOvGQWw/9nu4K4Mt0oo
         uwyhCAl0mJwBklJQFaRa07lVHjZJDmt225VJbkqliy+Ar9b7YTUm2PzBn2LOfSfjSacf
         ur5EF2pRMtFC2FaUrq+EEXkWGZ8l4dMoRb6BcCldUB43hBZuKu2JOIiW6QVtrQOSxVKO
         6ILAFbDTTLPpBm5/vKLqld7WRkzQLHTPIbUeLSMI5uZcsWk89gBQdqTjlcZ00sdcjmbt
         QY+w==
X-Gm-Message-State: AKGB3mK8dQ004XgYdmFR46aFg5d/dSSC7d7IE3rFFMVujCxtlku+BWrl
	8BqosxaGdN/8qopBeNwlFl6GXw==
X-Google-Smtp-Source: ACJfBotqhVRkIjoD3vqOIyDKRQqOKYZ4npadF901yn9oXqlsa+sHzNSibvu1iro8GLgGHHwCrLFp8Q==
X-Received: by 10.157.40.81 with SMTP id h17mr13814325otd.92.1514319081276;
        Tue, 26 Dec 2017 12:11:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.168.80 with SMTP id r77ls2970844oie.4.gmail; Tue, 26 Dec
 2017 12:11:20 -0800 (PST)
X-Received: by 10.202.45.205 with SMTP id t196mr19723715oit.15.1514319080350;
        Tue, 26 Dec 2017 12:11:20 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1514319080; cv=none;
        d=google.com; s=arc-20160816;
        b=xHH7KdacKTZ4toohKOUKRIsmxDMu4j6LR1XOPNTrZCjybFgKQPxItpgKG6arbnJP22
         Bii7S7evVq5CO+XGZIskV9t/jvMMxt73wEw1A8aalgxcb4ECEWErqOb35VVEgFUqguOp
         798i9aCzmv70grU2GKhHSZEqgy39dUgdlpHrvz1fKL9Bl4YqnO7aCHBLJn2jlVKfrdtz
         6oJVcKU1Fbqh4RugiKA/OddUbgP3IZclkxumjyB2PkMXVFJvuwNJ7A/iSNljwEDQObd3
         NghKcMGKNIjlqTug+RFywe7Pgpb0fJ4oAUM4w1b7rEMHlZYzHNussAURSnRQRxlXOnfk
         HMeQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=IbdKRvR2kHwfvmG1fPiOjIHs1BBoCsyXu5qYZUWSIh8=;
        b=n3BaiTf7BqOP3YA1msemv4l7VKEF81rCs4CgqMWVAzVLVEeNTYrhiSz1QpE8Fssi0M
         FOBNm94C3lGZhagTbS+3lV6z9AL6UhltD9puJ+gxeUPxjndtEG/YzGznihWqEwvto2bS
         N5dMvljOIt+QM0p4TKgHMkUFS/pZQCmHjhFfbh/q+mcfI02q7kvuhz2y65BQnzEMJvm1
         x7H/sQ9XE1dvxHDCnOgNXw5l4jRaE4RvNj27WALGDtL4CDdnXpmU8hDOvNjRaIpdJa5y
         gTcjRmOrowsWSjpbsQUnQZ7RSxQ9HA94ET3tfY2Rus3SyX5ILc1UMQUN8xXmxzh2QgNl
         Pwgg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=fo3U4BOG;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id z3sor6961688otz.69.2017.12.26.12.11.20
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Tue, 26 Dec 2017 12:11:20 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.157.13.225 with SMTP id 88mr21579311ots.338.1514319079876;
 Tue, 26 Dec 2017 12:11:19 -0800 (PST)
Original-Received: by 10.157.43.248 with HTTP; Tue, 26 Dec 2017 12:11:19 -0800 (PST)
In-Reply-To: <fcf44c66-1097-4242-a265-1629aaf24ebb@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=fo3U4BOG;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates 209.85.220.41
 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=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-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:36363
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36363>

On 26 December 2017 at 21:51, mrpi via ISO C++ Standard - Future
Proposals <std-proposals@isocpp.org> wrote:
> Doesn't the same argument about optionals and variants apply? Just recently
> std::optional and std::variant weren't yet made trivially copyable (nor have
> any recent draft of the standard accepted it yet). What I'm asking about is
> doing the same for std::pair and std::tuple.

The difference is that optional and variant were introduced in C++17,
and are still considered
experimental by (some) implementations. Both tuple and pair have been
there since C++11 or before.

> And furthermore, what sort of problems would pop up from enforcing
> std::tuple<int> to be trivially copyable?


No other problems besides the ABI break, I think. Implementation-wise
there's nothing The Elf or his
Mighty Maintainer could not do, and the same applies to other
implementations and their authors;
making such types conditionally trivial is not particularly hard. The
warts arise because the C++11
types weren't specified or necessarily known how to write in
fully-constexpr (constexpr was enhanced
in C++14) or fully-triviality-reflecting fashion, and changing that,
while doable in a pure C++17 environment,
is not always so straightforward when C++11 (and ABI) compatibility is
a concern.

-- 
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/CAFk2RUY3XQiLzsSTiZ6QECf7EK%3DyEoq%2B3JGA05783AgbqHVMOg%40mail.gmail.com.

.
