220 19288 <a788504b-0028-425e-ab72-8312dda594ed@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: denis bider <isocppgroup@denisbider.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Testing for supported features: Per-feature
 macros? Sentinel compilation?
Date: Sun, 26 Jul 2015 13:35:01 -0700 (PDT)
Lines: 91
Approved: news@gmane.org
Message-ID: <a788504b-0028-425e-ab72-8312dda594ed@isocpp.org>
References: <e5919c40-d35e-4309-b5b8-6525a4eb443c@isocpp.org>
 <CAFk2RUYYR4-ffCPOxYRCBwqaoWMHjvvHm0_q2nzJnkanhOH_+g@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2396_838705685.1437942901705"
X-Trace: ger.gmane.org 1437942914 6532 80.91.229.3 (26 Jul 2015 20:35:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 26 Jul 2015 20:35:14 +0000 (UTC)
Cc: ville.voutilainen@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD5LNK7YQYJRB54I2WWQKGQESZ5EX3A@isocpp.org Sun Jul 26 22:35:14 2015
Return-path: <std-proposals+bncBD5LNK7YQYJRB54I2WWQKGQESZ5EX3A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f199.google.com ([209.85.214.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD5LNK7YQYJRB54I2WWQKGQESZ5EX3A@isocpp.org>)
	id 1ZJSdV-0002o4-Gs
	for gclcip-std-proposals@m.gmane.org; Sun, 26 Jul 2015 22:35:05 +0200
Original-Received: by obbtr2 with SMTP id tr2sf25263886obb.1
        for <gclcip-std-proposals@m.gmane.org>; Sun, 26 Jul 2015 13:35:04 -0700 (PDT)
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:cc:message-id:in-reply-to
         :references:subject:mime-version:content-type: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=twYzlHi5lX8qXt5cyHAibHAPWTcol8lObCDwSjrUDIw=;
        b=U+9nkGa0FK6gm9QyFAjFUm5LWxgvRUbahkQcVPrU9HjnZRTkJxi8JvvSlOYCZMTZnU
         JP6BjGGfFzMZgVdbVh7d44pfgvCss06n2QEI46dthh5mvn6JsSXG03it7zCIyZLrgTs+
         xf2qgsJ/2InIcQr28BW+71Ymf5ENBObt+0+cGTFcL7SKB35ofWYvny0eyRZ8TZn0JUwF
         90KgtMvgqB18QhJxXT9ZeFv6Nc6CmGz10+UveISpHlUAgtrBd46ZRZ3eRs3DVVPtsXZL
         4eJSAwfNnm9tmdcPEO7Pv/uwgSYxU7oNEEJI5KMwqpgR38PHMGGxbSrmzZZ3MbAwv4jT
         fyEg==
X-Gm-Message-State: ALoCoQnJmrCAo5r5N/yNYadJ1nsuDpGSbE+OLW6x6wMtiCXnS6EH96jN4+U6oVmGxGP7rowoYMmW
X-Received: by 10.107.131.14 with SMTP id f14mr24798762iod.19.1437942904335;
        Sun, 26 Jul 2015 13:35:04 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.98.66 with SMTP id n60ls2518807qge.10.gmail; Sun, 26 Jul
 2015 13:35:02 -0700 (PDT)
X-Received: by 10.140.92.81 with SMTP id a75mr8628qge.14.1437942902869;
        Sun, 26 Jul 2015 13:35:02 -0700 (PDT)
In-Reply-To: <CAFk2RUYYR4-ffCPOxYRCBwqaoWMHjvvHm0_q2nzJnkanhOH_+g@mail.gmail.com>
X-Original-Sender: isocppgroup@denisbider.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: <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:19288
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19288>

------=_Part_2396_838705685.1437942901705
Content-Type: multipart/alternative; 
	boundary="----=_Part_2397_863658984.1437942901705"

------=_Part_2397_863658984.1437942901705
Content-Type: text/plain; charset=UTF-8

This is nice and all, but it's a *lot* of bureaucracy for a non-general 
solution that needs maintenance with every new language version; and leaves 
out niche situations that sentinel compilation would solve (e.g. 
implementation differences between compilers that *claim* to implement the 
same feature).

On Sunday, July 26, 2015 at 11:57:35 AM UTC-6, Ville Voutilainen wrote:
>
> On 26 July 2015 at 20:42, denis bider <isocp...@denisbider.com 
> <javascript:>> wrote: 
> > A common issue in libraries with similar goals is how to detect that a 
> > particular language feature is implemented, so as to either make use of 
> it 
> > or not. Currently, in most cases, this requires testing macros for 
> specific 
> > compiler versions. 
>
> Some implementations support these: 
> http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4440.html 
>

-- 

--- 
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_2397_863658984.1437942901705
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This is nice and all, but it&#39;s a <em>lot</em> of burea=
ucracy for a non-general solution that needs maintenance with every new lan=
guage version; and leaves out niche situations that sentinel compilation wo=
uld solve (e.g. implementation differences between compilers that <em>claim=
</em> to implement the same feature).<br><br>On Sunday, July 26, 2015 at 11=
:57:35 AM UTC-6, Ville Voutilainen wrote:<blockquote class=3D"gmail_quote" =
style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: r=
gb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">On 26=
 July 2015 at 20:42, denis bider &lt;<a onmousedown=3D"this.href=3D&#39;jav=
ascript:&#39;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;re=
turn true;" href=3D"javascript:" target=3D"_blank" rel=3D"nofollow">isocp..=
..@denisbider.com</a>&gt; wrote:
<br>&gt; A common issue in libraries with similar goals is how to detect th=
at a
<br>&gt; particular language feature is implemented, so as to either make u=
se of it
<br>&gt; or not. Currently, in most cases, this requires testing macros for=
 specific
<br>&gt; compiler versions.
<br>
<br>Some implementations support these:
<br><a onmousedown=3D"this.href=3D&#39;http://www.google.com/url?q\75http%3=
A%2F%2Fopen-std.org%2FJTC1%2FSC22%2FWG21%2Fdocs%2Fpapers%2F2015%2Fn4440.htm=
l\46sa\75D\46sntz\0751\46usg\75AFQjCNGChifP8BumVKB0Vy9FEzTq8kFoXA&#39;;retu=
rn true;" onclick=3D"this.href=3D&#39;http://www.google.com/url?q\75http%3A=
%2F%2Fopen-std.org%2FJTC1%2FSC22%2FWG21%2Fdocs%2Fpapers%2F2015%2Fn4440.html=
\46sa\75D\46sntz\0751\46usg\75AFQjCNGChifP8BumVKB0Vy9FEzTq8kFoXA&#39;;retur=
n true;" href=3D"http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4440.=
html" target=3D"_blank" rel=3D"nofollow">http://open-std.org/JTC1/SC22/WG21=
/docs/papers/2015/n4440.html</a>
<br></blockquote></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_2397_863658984.1437942901705--
------=_Part_2396_838705685.1437942901705--

.
