220 26361 <81998cb5-722e-49a1-be98-7ca1e219b72a@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: FrankHB1989 <frankhb1989@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Swapping with volatile lvalues
Date: Tue, 21 Jun 2016 00:29:19 -0700 (PDT)
Lines: 48
Approved: news@gmane.org
Message-ID: <81998cb5-722e-49a1-be98-7ca1e219b72a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4197_932261116.1466494159053"
X-Trace: ger.gmane.org 1466494172 9681 80.91.229.3 (21 Jun 2016 07:29:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 21 Jun 2016 07:29:32 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCTJVBPG3QIBBUGZUO5QKGQEKKFYYJA@isocpp.org Tue Jun 21 09:29:28 2016
Return-path: <std-proposals+bncBCTJVBPG3QIBBUGZUO5QKGQEKKFYYJA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f199.google.com ([209.85.192.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCTJVBPG3QIBBUGZUO5QKGQEKKFYYJA@isocpp.org>)
	id 1bFG7e-00011S-85
	for gclcip-std-proposals@m.gmane.org; Tue, 21 Jun 2016 09:29:22 +0200
Original-Received: by mail-pf0-f199.google.com with SMTP id 143sf16978981pfx.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 21 Jun 2016 00:29:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=YgvQEdBI12i5C8qply3cT82K5CypMtAQisoHVTT3kaM=;
        b=GxZugMdjteXJs6GbS0fF9FYTmkSCgpeQM3aBnf1BGoMwJB3tYD8azq23CrEDCp1N98
         zjz1gdTxV16BcaDvhJBXkpl1uHU8yG8hWPRIlr6nVYXxrKjTzd2/2lDFjoqkN6SHTbL7
         McN1VdfwrJCVemz/LeJsbpTEHkrjDIrDiJQXHd4pSEhFu9D+UIeqkZHSnTnCTpE2SZkR
         CheVhBmnnGfeM3s/sCYcsPLzN+vmkVN9qRHBNZ2U32D2gpuRjGW1IFSxaPP/u8OBrCUH
         Zp4fDdpdEujrony5/TsJtbNEp3ALN/Dan/6nnWwI0ear94KQZ3zAOoOTOehghwBTUFLf
         Umaw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=YgvQEdBI12i5C8qply3cT82K5CypMtAQisoHVTT3kaM=;
        b=dfmv4WziBk0J2FRD+H9l+HslSy1ZmINY6w/jFN895kNFgI3YqhGr5bPx8/yr4jZt9J
         eXHAWd+XWvwLWeijzRW20ESCxYJwl9lynC9Huxuy5Tx9LJPLoa0bN/v5JJ9+imI6tIul
         mxTZELr5U8cl8Wp6keO9fs5ex5ztU8hfMBkENsOgQ39/55N3DJgocqWOVkB3anMRhSrc
         ykEUc7c7aip4g5/S9eHBho0O9wTEB2X9JRnrVRMPOfVYeqT5uNVms/HpTRarrNOG+e6n
         x0cfhEsTR3NCMcLr1ximWh8E/f0QxjwUGM8WkLxeiEQK50p7KySZJfFnyNT82zeR0ek4
         +8qQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=YgvQEdBI12i5C8qply3cT82K5CypMtAQisoHVTT3kaM=;
        b=iPb8JEFxKt4QhK6XWDYO332aHhBqmDdER3LWI6pbd72dw7r6joPIucoXpsRI38w3nA
         jl865w1VukVSfhm+PKROHqvAK7FtwgeXhNN2rbvzi+fsnj0TUUbERWkNPGY+H8akvriq
         n3rIip9+B4XfxE5a1gnCsscnIPqFzxtoq2apYVbVv/xmwfCkDHe0CfzgrNytyyu6GXO0
         QSNZqD/1maNK3OAYR2a/hXPZbVSkP5oa88fqTMtlMWsJo2sAfnIm6TgBth8mQjX8N9h1
         czdnxi10xf8RwSVl/zXW1BS+rawJBb3Xg1PWQVoakRMopPfBiouE+Bor2otD3cJaoiEh
         u+kQ==
X-Gm-Message-State: ALyK8tJCXYyAPJD6UrZrRR6Lh2sraOUY60k0qR7vAkMfVoQDeoWNL6FDQGBzrF5nZIPpJg==
X-Received: by 10.67.3.138 with SMTP id bw10mr20562844pad.16.1466494161094;
        Tue, 21 Jun 2016 00:29:21 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.160.75 with SMTP id j72ls495274ioe.13.gmail; Tue, 21 Jun
 2016 00:29:19 -0700 (PDT)
X-Received: by 10.36.40.146 with SMTP id h140mr32508ith.1.1466494159960;
        Tue, 21 Jun 2016 00:29:19 -0700 (PDT)
X-Original-Sender: frankhb1989@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:26361
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26361>

------=_Part_4197_932261116.1466494159053
Content-Type: multipart/alternative; 
	boundary="----=_Part_4198_936751888.1466494159053"

------=_Part_4198_936751888.1466494159053
Content-Type: text/plain; charset=UTF-8

I find swapping between the non-volatile and volatile lvalues may be 
useful, e.g. to save/restore errno where it has volatile type. Though it is 
easy to roll my own wheels, is it being considered in the standard, e.g. 
`template<typename T>void swap(T, volatile&) noexcept`?

-- 
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/81998cb5-722e-49a1-be98-7ca1e219b72a%40isocpp.org.

------=_Part_4198_936751888.1466494159053
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I find swapping between the non-volatile and volatile lval=
ues may be useful, e.g. to save/restore errno where it has volatile type. T=
hough it is easy to roll my own wheels, is it being considered in the stand=
ard, e.g. `template&lt;typename T&gt;void swap(T, volatile&amp;) noexcept`?=
<br><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/81998cb5-722e-49a1-be98-7ca1e219b72a%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/81998cb5-722e-49a1-be98-7ca1e219b72a=
%40isocpp.org</a>.<br />

------=_Part_4198_936751888.1466494159053--

------=_Part_4197_932261116.1466494159053--

.
