220 37087 <CALmDwq1g4Sag=9c_eW3Qdy3KOUiHmhQTG1RB4fC1ZcgO6BfOtA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicolas Lesser <blitzrakete@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: specify concept implementation
Date: Mon, 26 Feb 2018 21:04:28 +0100
Lines: 70
Approved: news@gmane.org
Message-ID: <CALmDwq1g4Sag=9c_eW3Qdy3KOUiHmhQTG1RB4fC1ZcgO6BfOtA@mail.gmail.com>
References: <93e7e509-edf0-4df6-9b2f-555bba92a04a@isocpp.org>
 <a1345907-f673-43f5-afb8-3ad064a0a6d6@isocpp.org> <805d3933-0cf9-465f-906c-849ab25c7a63@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a11482c20774e2705662304f7"
X-Trace: blaine.gmane.org 1519675348 15181 195.159.176.226 (26 Feb 2018 20:02:28 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 26 Feb 2018 20:02:28 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDXKNLEUTADRBTOQ2HKAKGQEKOTHAIQ@isocpp.org Mon Feb 26 21:02:24 2018
Return-path: <std-proposals+bncBDXKNLEUTADRBTOQ2HKAKGQEKOTHAIQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ot0-f199.google.com ([74.125.82.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDXKNLEUTADRBTOQ2HKAKGQEKOTHAIQ@isocpp.org>)
	id 1eqOyd-0003Rs-O0
	for gclcip-std-proposals@m.gmane.org; Mon, 26 Feb 2018 21:02:23 +0100
Original-Received: by mail-ot0-f199.google.com with SMTP id w23sf750598otj.6
        for <gclcip-std-proposals@m.gmane.org>; Mon, 26 Feb 2018 12:04:30 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1519675470; cv=pass;
        d=google.com; s=arc-20160816;
        b=EZniQE65KXaK2qswgnKdgCxG6Ihjyl3lDzxXHi0pL2zeQ89rKopvMbqPnyYjOvEAh6
         3nwSrfcnNznPvjP/zu0vWwjrXIFtQU7Za+tBgCNmB3VU1tSXu5pq8WLkt5Xn3mykwQp5
         zUd4yzzXEH02qBAzygxof9u9LiAuL04mHhVCZTQd5Uilvw93dviMIU4iqZVwj68q+Hs4
         77kh6ypA50LFBoX27gUABRT05cT+V3cWBfK6YQgPMu+4XaFaM24yqlbgSMW06qL+vSNi
         ZUplaN2sF+WtnBwcQZvFO1hvozvbDoxIZoekZugzTrBiIkuurKVRt7iWAqKtvY1u82Bj
         kqBg==
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=OFXH4CUUnqMI8fe04NheAXFtHk5tbO9ilT0yjWCx5ww=;
        b=F+0R0L6C2ZvuAQmOnmyq84caE/9n1OwaFPDqiyE/reJL11Y7UexRgs+UMdr1hcx8BD
         AtpL/0JFd9LLjxde4O8WfUxlGb9UqPt+nNw7+q3gRjsg2IvoEb5X9TP5A43/11APmKZi
         XcVIohC/OdYaV9Jt9WAfaeOZbT5Q2GzSL8I00/Gw2uVtGnDBmIKOW2O9YBM0beAa3xTB
         XgEWYcdxK9FexvJY/9rlAGTidGDhMAMoXPTh6wZr/AOPKXjl/Yw7Qs2JcaDD0pZUsDcx
         /c4Cy2+R0Y20l19cH4TE5dnLsjHO7qThXkASB0+knMIxECsuUvLQANoLT+LxvPhv8a5V
         hDjg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtsw8nII;
       spf=pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=blitzrakete@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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=OFXH4CUUnqMI8fe04NheAXFtHk5tbO9ilT0yjWCx5ww=;
        b=FInR+mQjozMKapwLZMAReYsEn6+8qm44SCcZJHZpegbPIg5fM2MvhBC8Qb0V/rVlZg
         AKIlep5oiicHnF1/9e7lQRIn5Oz7w6n2hpt7e1HqlmdPG9bEesQW/K2A3LeiGy7F9n7b
         3H22b3+Y1jeBznEn8nHxfmcpX0wJN8Q3CB2oLlCafEcflM2tNOOXm9C99sgI2saAl+V4
         WCFCpozB6T+qTbB7eraZYQmjvF9bmMX7gM5UopfXCZJxWcWOQN+dSMBweUsIQQiQZLrH
         Jjn/y/uXU+RhLl87xjOVvBIAeonGzBUILe1LTGBE9uEmguHcCs3N9hP5+d+TgjJX98kp
         WBgg==
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=OFXH4CUUnqMI8fe04NheAXFtHk5tbO9ilT0yjWCx5ww=;
        b=YEbx+HXUk5uhRmr5FMhq40KW1fZCqXNtU/6mcrO0kCzYAYQH+4hmYdjQRq/wQJ6+SG
         iChfM9Cl9xSXSa0TcDBwNYqDg8zO6fOPsEy2lKK+eLEZohzq0eiS+LhdwOZwgUNsIkMB
         aHrXUZKPtSJLStE7n/Lu1N6ruRnpn8KMH1IWBTzbycmO5foWJbbpDfRG8EwvyrUWswUt
         ElSzyImgagf/gGl1h2J0rNP1ehowvQIZ6+D7nHjonvx4avJgbp7ZVzCrxncNxJRm3y6W
         BOsk2TtY5UrURF5YfOzKLHGW1mWer73I+MXYDcYOzVKrQy7KaPWwtPVg1/JfwCTgY4Cf
         fG7A==
X-Gm-Message-State: APf1xPDsAuSVARLPwJo/lFtXVWq2AGhA9oEDDn+lfOV3sLUSonigeOjZ
	+O3JoGjiXefA8t43/8WI+ayibA==
X-Google-Smtp-Source: AG47ELvvqDtAhK9hGfWf7vAzezW/mxKDR634LF/87gNdGU8w7j3GEcJLXn9cv/vMR/IXToCkgYdI4w==
X-Received: by 10.157.51.153 with SMTP id u25mr3492234otc.39.1519675470019;
        Mon, 26 Feb 2018 12:04:30 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.202.232.70 with SMTP id f67ls1492591oih.20.gmail; Mon, 26 Feb
 2018 12:04:28 -0800 (PST)
X-Received: by 10.202.235.12 with SMTP id j12mr7344302oih.284.1519675468788;
        Mon, 26 Feb 2018 12:04:28 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1519675468; cv=none;
        d=google.com; s=arc-20160816;
        b=VD8z31QPJQ0PewCoa+4GwBwTnOrLFODJgIAYLJfuWpfFcbbiabShI5NTbgeeLMJwlq
         cklalL5k+9jKmYZ+WluWxsvQq80xnhlsUMFmCiYwx6VqLbpRi5B/15A6F03e3ZBtG0bW
         9CIpXRYHaeHZzJxdMOuiRY6dlIbSNbSFiyroo97xV8jgj8i8rSsNCFYr0xIi0DWGQPsK
         jKpVTZtonlmo1fIfVhMUwprqVxeZkpDeNxMb0g1O7FzvqCGSWbOuvaJfaB4bAfMdLfvw
         7BmmkctjNrhmySEFRJcJO5QVJwWK1ljTNY0cC/igeF6xUk/QxLv90csPXiLHK9Nh0ZI0
         g18Q==
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=+bYdgwN1IAEUOubEM2l+0UqP32/kf/iF85pd0Dz09HQ=;
        b=O+aA4Cd093U3yRmk9tab1CvTpKanJbH4FFJjbFUXrzn9fWT5K1QW27BJle4xNMHybI
         KJ5zPv1p8hs8NX5YHlL9VOQ5H3Lmb6Ga1dQqPoh1a+mfOdIL9kZl5O/FqgwKfYwnrztD
         yxHh0+JNZIeIxJydCy0Dxk1bv9uscEAT/PXAnBybeKmSQ1PPQ2FtBb520P/+KFVJzxv4
         Uo1WH2m+2732nvy7K5mjFQpVz/u/veKFWxr3ILXulmb6On9jsdfT1POj8GdJ+254qqsZ
         01t0Dg0cwpbFewC27+DSypQ5zZhl917vchJ3sFcwI4KvWSbEc2/Kv2ZzrlOxMuMs04yl
         KBHw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtsw8nII;
       spf=pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=blitzrakete@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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 b6sor1314500otf.278.2018.02.26.12.04.28
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Mon, 26 Feb 2018 12:04:28 -0800 (PST)
Received-SPF: pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.157.65.187 with SMTP id p56mr8948646ote.123.1519675468368;
 Mon, 26 Feb 2018 12:04:28 -0800 (PST)
Original-Received: by 10.157.94.1 with HTTP; Mon, 26 Feb 2018 12:04:28 -0800 (PST)
In-Reply-To: <805d3933-0cf9-465f-906c-849ab25c7a63@isocpp.org>
X-Original-Sender: blitzrakete@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=qtsw8nII;       spf=pass
 (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=blitzrakete@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE 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:37087
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37087>

--001a11482c20774e2705662304f7
Content-Type: text/plain; charset="UTF-8"

>
> As for static_assert, no it's not.
> static_assert on an explicit concept call only triggers a "something went
> wrong" level of informations: https://godbolt.org/g/5Hb7zP
>

That's a quality of implementation issue. I fully expect gcc to improve
this error message in the future.

I agree though that a whole language feature would be overkill.
> What about an attribute?
>

Why not use requires?

struct A requires C<A> {};

It looks more like a function constraint and doesn't require any weird
language feature. Also, attributes should not change the meaning of the
program if they are ignored, so using attributes is a non-starter.

-- 
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/CALmDwq1g4Sag%3D9c_eW3Qdy3KOUiHmhQTG1RB4fC1ZcgO6BfOtA%40mail.gmail.com.

--001a11482c20774e2705662304f7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><div dir=3D"ltr"><div>As for static_assert, no i=
t&#39;s not.<br></div><div>static_assert on an explicit concept call only t=
riggers a &quot;something went wrong&quot; level of informations:=C2=A0<a h=
ref=3D"https://godbolt.org/g/5Hb7zP" target=3D"_blank">https://godbolt.<wbr=
>org/g/5Hb7zP</a></div></div></blockquote><div><br></div><div>That&#39;s a =
quality of implementation issue. I fully expect gcc to improve this error m=
essage in the future.</div><div><br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><d=
iv dir=3D"ltr"><div>I agree though that a whole language feature would be o=
verkill.</div><div>What about an attribute?</div></div></blockquote><div><b=
r></div><div>Why not use requires?</div><div><br></div><div>struct A requir=
es C&lt;A&gt; {};</div><div><br></div><div>It looks more like a function co=
nstraint and doesn&#39;t require any weird language feature. Also, attribut=
es should not change the meaning of the program if they are ignored, so usi=
ng attributes is a non-starter.</div></div></div></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/CALmDwq1g4Sag%3D9c_eW3Qdy3KOUiHmhQTG1=
RB4fC1ZcgO6BfOtA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CALmDwq1g4Sag%3=
D9c_eW3Qdy3KOUiHmhQTG1RB4fC1ZcgO6BfOtA%40mail.gmail.com</a>.<br />

--001a11482c20774e2705662304f7--

.
