From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 60ABD384A4B5 for ; Mon, 19 Aug 2024 22:09:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60ABD384A4B5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 60ABD384A4B5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724105360; cv=none; b=nkAYNQhp3ZRyjtpeZrSd+RYd/f2aDxKrX2zxIOabGa/lyNmI0HBc1w2KN9giwkEackDYjPL3NBvBwKvLGz5a/YrGWUDAbMzUPHf6VYtFBBJojF2VyHtcOm4dmOJZemr+WREQP78TnzpDpPXIr3l6Clcf+OhsFozVBs27mYw0Xto= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724105360; c=relaxed/simple; bh=5PYO9ZLSo/RCE2rZlq5ZZPX1YPB+9K3dfZxEezDwmJo=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=gD6tGX+rG/w6lkQIoAluQkqxano//0mzRr2e2BVq+tfCXWB4SCGS/TlqRt357ql86X6TNtoQ6LZsWIpMRQXRrFgV1nwe0kBx3Uo0SA+n3tl9fdzpe1ZtfmJLmqZvA5Na0mDjDidK698+vLYxRjqA8daGhvhvlr8GbokU4wx7w2Y= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724105356; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xywvPLPmZ2kiWzBczlLQ6CK3XI7uex9CR4ddEQjMWFI=; b=hX96q/ruYAb+g9DCg5UsTKZ4qcrsykgRNQpuf4oztnqHZfqVqLP0sbyFu5qM8ngRczE3kj ANIix4ewJTOp10SBeLO+5PkP4xoYKxXf+zutKz/0xREhZi9WPmZcgSRbHaLJMnE98A7WUF l2VDianzzMR29/Gu0cftVBLNHUHZr1I= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-45-y1ChFnRwPWS6sDSEg1wn5A-1; Mon, 19 Aug 2024 18:09:13 -0400 X-MC-Unique: y1ChFnRwPWS6sDSEg1wn5A-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7a1d7344c81so509230185a.1 for ; Mon, 19 Aug 2024 15:09:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724105353; x=1724710153; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xywvPLPmZ2kiWzBczlLQ6CK3XI7uex9CR4ddEQjMWFI=; b=I6NfoxQCZZiaVFdC27NEh75aonCVW/nWxgqem1iLlkIdCBC1uH+kJHxzeXj4D8bH/d ZXFIPdBL2JssABIaR0qAstlJmPlLUxnlP7pJDBJlxbizhjsn6dpb2ip12WnzTdF3y2CN JrUq1A0ONtz+GcuwXv9ffnjmOLU42w3H+CFSz+8vZrVp/vc6MilblstTWkrVtyoZazWL EdScOn3pGqdvzFq/BmDjuLQybMtaqh/S7ICiVLsj0x3AqhDp23hxJwPgYnwy65aoDf63 dMr8pPstA15Kfjp+TYa3IH+gJr9n/Cr21K8a/Jo9dSj1lpZbc1Mv7omz/Tj1Yr3yKFkK jatA== X-Forwarded-Encrypted: i=1; AJvYcCXmLr5pQe6I8p99dveKzhrwgzJcyBFysjDSUjtZ2f8O7DzGiQHuUV6rkLQcoT4UiCmtiSiMnnnDAYoohg==@gcc.gnu.org X-Gm-Message-State: AOJu0YzqVYkp8hVe7Q2KIt8JZVegmqWA4Nxvf280sKur8aW69c53qQoS a04KETq2iyHlQ9hJkjKC/VBUv/9uNgu+M1XzMpHB3lqmJGdhrBxa/t95qlW7Gkc/v+kpLtahUkV /yjNZgJpNclWj5lmSvksg8i03C7SBk+gdTd7Ck2d8XCG4+UhFq19UJBs= X-Received: by 2002:a05:620a:4245:b0:79f:5d5:1bc1 with SMTP id af79cd13be357-7a669685ff7mr50796285a.58.1724105353112; Mon, 19 Aug 2024 15:09:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXqn9gDwNkF9/zTXzOTk8qf0cJCCnTRFNGTV0QgGlm3wbgx3UzhnHct1xSm2wyI5t9WP3WVg== X-Received: by 2002:a05:620a:4245:b0:79f:5d5:1bc1 with SMTP id af79cd13be357-7a669685ff7mr50793985a.58.1724105352597; Mon, 19 Aug 2024 15:09:12 -0700 (PDT) Received: from redhat.com ([2603:7000:9500:34a5::1db4]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a4ff02f90bsm473384485a.5.2024.08.19.15.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 15:09:12 -0700 (PDT) Date: Mon, 19 Aug 2024 18:09:10 -0400 From: Marek Polacek To: Jonathan Wakely Cc: Gerald Pfeifer , gcc-patches@gcc.gnu.org Subject: Re: [wwwdocs] porting_to: Two-stage overload resolution for implicit move removed Message-ID: References: <1892d73a-c210-358c-fe40-c1bafc17fd13@pfeifer.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Aug 19, 2024 at 10:34:20PM +0100, Jonathan Wakely wrote: > On Mon, 19 Aug 2024 at 21:51, Gerald Pfeifer wrote: > > > > On Wed, 12 Oct 2022, Marek Polacek via Gcc-patches wrote: > > > +

> > > +The two overload resolutions approach was complicated and quirky, so users > > > +should transition to the newer model. This change means that code that > > > +previously didn't compile in C++17 will now compile, for example:

> > > > I looked at this recently and am wondering whether there is a word > > missing: "two overload" -> "two-stage overload"? > > > > If so, the patch below addresses that > > > > On the way, I changed "[code] will now compile" to "[code] may now > > compile", since not every code that failed to compile before will now > > compile (e.g., syntactically incorrect code). > > > > What do you think? > > No, it should either be "two-stage overload resolution" or leave it > unchanged. But "two-stage overload resolutions" (plural) is wrong. I hadn't noticed the plural before. I agree that's wrong. Sorry :(. Marek