220 17362 <96b876e7-1ee0-41de-8ca9-842ef38206f3@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: =?UTF-8?Q?Andrzej_Krzemie=C5=84ski?= <akrzemi1@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: N4461 (Static if resurrected) -- on implementability
Date: Thu, 16 Apr 2015 02:58:39 -0700 (PDT)
Lines: 66
Approved: news@gmane.org
Message-ID: <96b876e7-1ee0-41de-8ca9-842ef38206f3@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_6992_627655005.1429178319705"
X-Trace: ger.gmane.org 1429178330 26289 80.91.229.3 (16 Apr 2015 09:58:50 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 16 Apr 2015 09:58:50 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDT2DGOJ34DBBUEPX2UQKGQE24U3NNQ@isocpp.org Thu Apr 16 11:58:46 2015
Return-path: <std-proposals+bncBDT2DGOJ34DBBUEPX2UQKGQE24U3NNQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f69.google.com ([209.85.213.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDT2DGOJ34DBBUEPX2UQKGQE24U3NNQ@isocpp.org>)
	id 1YigZG-0006e0-55
	for gclcip-std-proposals@m.gmane.org; Thu, 16 Apr 2015 11:58:42 +0200
Original-Received: by yhhg46 with SMTP id g46sf10164417yhh.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 16 Apr 2015 02:58:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:content-type
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=uNOPjhPgGdkvmb5nqu/6P2WF5UgsbiFB/QmlGZ7Kt54=;
        b=FLjErzJH9JVn42vhma9UVltNTVOyOkOp8EDiFjHjS1k9782N+wvm6fnVe91yl48nYT
         fFMeAWXRcOZQcMUXw7rNfilV8wQN7hTZAAaTwPJD+xFJKsLw+/b67DXbrfe5q/kJztJo
         bWfEWg+5jPgcWwdLWm2EWn+Xb9bjW6Hy4o5ExUGzPZG51gbLezmzJ+Aqkt7NJS4AgyWM
         Gu4katW9o2G3qVujixMafRsZ7ay0mVP+SBUXPaE/K7fah1xGF9PxQWMUdUYRJF7rinmP
         UzphF+PFhrg5gksQrNXF2UBMIdxXOOq2Nc4O/xUTQz0o9jTUAeyuGSBCbb8PyW27h8xe
         pldg==
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
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=uNOPjhPgGdkvmb5nqu/6P2WF5UgsbiFB/QmlGZ7Kt54=;
        b=BBKD+MyKcTJSmb0R+g0j9gGsAKT3uXYlGBdY6tU/+vmOiO0dXBU+jEjcpVhJQR2J2F
         Jy8/5Zg7qTmEZblWpBosS2cmC502V5kiBL7WNNK1/JQSLSFkWlia141Gapt8rPCefo9J
         UX/V44oiKCBxHiRDpNrzDT6lD/eRSaSgM0CUBvrEMLBbr2UyJ9ZUVIp1JBQun0wVCFmM
         DNw+YoQ7sNYPkSztd3Q8h79/kbpSI7rSh3+YAPYWYyY9940vqW6uvyTx3Gt3gVAxSECw
         PeSmR0m1dBwmQSI6AeYDBepLa9DOh8gETKHhHFvXuUx3HdBccek5vv2kqc+R1XH8IAiZ
         SCYg==
X-Gm-Message-State: ALoCoQkoQjMBMrmTVwlobsQLTPRFQ//xa95fbAWpTwm1zwOXO9AFbtFoRgfTyU4CNrw5gBXo6GAq
X-Received: by 10.140.151.85 with SMTP id 82mr40478295qhx.1.1429178321042;
        Thu, 16 Apr 2015 02:58:41 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.38.81 with SMTP id s75ls1142854qgs.29.gmail; Thu, 16 Apr
 2015 02:58:40 -0700 (PDT)
X-Received: by 10.140.98.116 with SMTP id n107mr393765qge.11.1429178320359;
        Thu, 16 Apr 2015 02:58:40 -0700 (PDT)
X-Original-Sender: akrzemi1@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:17362
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17362>

------=_Part_6992_627655005.1429178319705
Content-Type: multipart/alternative; 
	boundary="----=_Part_6993_557994971.1429178319705"

------=_Part_6993_557994971.1429178319705
Content-Type: text/plain; charset=UTF-8

Hi All,
I think that the "implementability" section of the paper on reduced static 
if proposal is too pessimistic. I tried to implement the two examples from 
"Motivation" section in C++14 with generic lambdas using the technique 
indicated by Paul Fultz II here: 
http://www.reddit.com/r/cpp/comments/295e77/clever_overloading_andrzejs_c_blog/

You can see the result here: 
http://melpon.org/wandbox/permlink/ub4qmpDyIzkZWP1x

While the syntax is obviously more ugly than what the paper describes, I 
believe the result is achievable in C++14 already. The compiler would only 
need to mechanically transform one notation into another.

Regards,
&rzej

-- 

--- 
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/.

------=_Part_6993_557994971.1429178319705
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,<br>I think that the "implementability" section of =
the paper on reduced static if proposal is too pessimistic. I tried to impl=
ement the two examples from "Motivation" section in C++14 with generic lamb=
das using the technique indicated by Paul Fultz II here: http://www.reddit.=
com/r/cpp/comments/295e77/clever_overloading_andrzejs_c_blog/<br><br>You ca=
n see the result here: http://melpon.org/wandbox/permlink/ub4qmpDyIzkZWP1x<=
br><br>While the syntax is obviously more ugly than what the paper describe=
s, I believe the result is achievable in C++14 already. The compiler would =
only need to mechanically transform one notation into another.<br><br>Regar=
ds,<br>&amp;rzej<br></div>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_6993_557994971.1429178319705--
------=_Part_6992_627655005.1429178319705--

.
