220 9011 <52EF28AE.80707@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: N3854 - Variable Templates For Type Traits
 and Concept-Lite
Date: Mon, 03 Feb 2014 06:27:10 +0100
Lines: 191
Approved: news@gmane.org
Message-ID: <52EF28AE.80707@wanadoo.fr>
References: <52E4B48B.6050302@wanadoo.fr> <b7d0f240-c3e5-43a6-9975-820dff5017fb@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------050107040009070404000800"
X-Trace: ger.gmane.org 1391405226 5426 80.91.229.3 (3 Feb 2014 05:27:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 3 Feb 2014 05:27:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBL6RXSLQKGQEGQKCKRQ@isocpp.org Mon Feb 03 06:27:13 2014
Return-path: <std-proposals+bncBDH67CONY4PBBL6RXSLQKGQEGQKCKRQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f69.google.com ([74.125.83.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBBL6RXSLQKGQEGQKCKRQ@isocpp.org>)
	id 1WAC3s-0003Zf-NT
	for gclcip-std-proposals@m.gmane.org; Mon, 03 Feb 2014 06:27:12 +0100
Original-Received: by mail-ee0-f69.google.com with SMTP id b15sf7462589eek.8
        for <gclcip-std-proposals@m.gmane.org>; Sun, 02 Feb 2014 21:27:12 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to
         :subject:references:in-reply-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:content-type;
        bh=6OU/p6B8lyWeGKJGml37RHKsnZlzO7wtfEbIwJiChnA=;
        b=TUyD83/bIOcBJA87G3IfguA5K5F2u0pikCKIHxidIIZ7kWXPx3H8bZIYxgGf/FDhiV
         28cuRY55Ba8jfMOD7peT6FyAITncHLyQ92Pk/MBZbNs3a89RKKvUQPa+B35TEXn12e1+
         Q93mjojhoeKYH9Y/E6jJDyRE3wrXnThSejefDvxsB1ZWJKWb0W/JirxPsc8uzyl492f9
         mB8QPGvn5l9I+55pg6fn0hx6aM3xXoIlmTqeokSPW91KTzNmCyjXxxaevCfFKZnnJtKC
         4i5JD3CloRd5QC6vixUUs7TWZtL3gSgRJYhKOim8OR5ZChh+1vX6w01PXWwZo7bVD+BX
         iJhQ==
X-Gm-Message-State: ALoCoQng/37swaHOYFeMuVKBeTlD3CYkQ03Ns3ws2iqDAUV3aUIvRAnKWzb+HhP+zzFL8TqhQHEO
X-Received: by 10.180.78.201 with SMTP id d9mr1088940wix.2.1391405232243;
        Sun, 02 Feb 2014 21:27:12 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.80.133 with SMTP id r5ls378585wix.32.canary; Sun, 02 Feb
 2014 21:27:11 -0800 (PST)
X-Received: by 10.180.98.71 with SMTP id eg7mr7177974wib.31.1391405231297;
        Sun, 02 Feb 2014 21:27:11 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr. [80.12.242.125])
        by mx.google.com with ESMTP id ap4si9281445wjc.64.2014.02.02.21.27.11
        for <std-proposals@isocpp.org>;
        Sun, 02 Feb 2014 21:27:11 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.125 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.125;
Original-Received: from new-host.home ([86.214.74.218])
	by mwinf5d38 with ME
	id MhTA1n0064ibG0N03hTArn; Mon, 03 Feb 2014 06:27:11 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <b7d0f240-c3e5-43a6-9975-820dff5017fb@isocpp.org>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.125 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mail=vicente.botet@wanadoo.fr
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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:9011
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9011>

This is a multi-part message in MIME format.
--------------050107040009070404000800
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Le 03/02/14 05:44, Bengt Gustafsson a =C3=A9crit :
> Isn't that already made next to impossible by the new usings for the=20
> corresponding type_traits yielding a type, such as std::add_const_t?
>
> This sets the example, although to me it is really backwards to have=20
> to select between the ugly add_const_t and the worse add_const::type.=20
> After all template using and type_traits were introduced in the same=20
> standard version...
>
> This deed done, I guess the only way out is to work on a proposal for=20
> library versioning so that you can select which version of the library=20
> you want to use. That's however something completely different.
>
>
Hi,

I have some difficulties in seen how your post relates to mine. Could=20
you be more precise?

Vicente

P.S. Please don't top post.

> Den s=C3=B6ndagen den 26:e januari 2014 kl. 08:08:59 UTC+1 skrev Vicente =
J.=20
> Botet Escriba:
>
>     Hi,
>
>     In
>     https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/QO=
YLLJjH98k
>     <https://groups.google.com/a/isocpp.org/forum/#%21topic/std-proposals=
/QOYLLJjH98k>
>     I posted a similar proposal.
>
>     Most of the proposed variable templates could be considered as
>     Concepts Lite constraints. Have you considered to use CamelCase
>     instead of the suffix _v?
>
>     Instead of
>
>     template <class T, class... Args> constexpr bool is_constructible_v
>        =3D is_constructible<T, Args...>::value;
>
>
>     include
>
>     template <class T, class... Args> constexpr bool Constructible
>        =3D is_constructible<T, Args...>::value;
>
>
>     In this way we could
>
>     template< CopyConstructible T >  bool f( T v );
>
>

--=20

---=20
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 e=
mail 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-proposa=
ls/.

--------------050107040009070404000800
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Type=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">Le 03/02/14 05:44, Bengt Gustafsson a
      =C3=A9crit=C2=A0:<br>
    </div>
    <blockquote
      cite=3D"mid:b7d0f240-c3e5-43a6-9975-820dff5017fb@isocpp.org"
      type=3D"cite">
      <div dir=3D"ltr">Isn't that already made next to impossible by the
        new usings for the corresponding type_traits yielding a type,
        such as std::add_const_t?=C2=A0
        <div><br>
        </div>
        <div>This sets the example, although to me it is really
          backwards to have to select between the ugly add_const_t and
          the worse add_const::type. After all template using and
          type_traits were introduced in the same standard version...</div>
        <div><br>
        </div>
        <div>This deed done, I guess the only way out is to work on a
          proposal for library versioning so that you can select which
          version of the library you want to use. That's however
          something completely different.</div>
        <div><br>
          <br>
        </div>
      </div>
    </blockquote>
    Hi,<br>
    <br>
    I have some difficulties in seen how your post relates to mine.
    Could you be more precise?<br>
    <br>
    Vicente<br>
    <br>
    P.S. Please don't top post. <br>
    <br>
    <blockquote
      cite=3D"mid:b7d0f240-c3e5-43a6-9975-820dff5017fb@isocpp.org"
      type=3D"cite">
      <div dir=3D"ltr">
        <div>Den s=C3=B6ndagen den 26:e januari 2014 kl. 08:08:59 UTC+1 skr=
ev
          Vicente J. Botet Escriba:
          <blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:
            0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
            <div bgcolor=3D"#FFFFFF" text=3D"#000000"> Hi,<br>
              <br>
              In <a moz-do-not-send=3D"true"
href=3D"https://groups.google.com/a/isocpp.org/forum/#%21topic/std-proposal=
s/QOYLLJjH98k"
                target=3D"_blank"
                onmousedown=3D"this.href=3D'https://groups.google.com/a/iso=
cpp.org/forum/#!topic/std-proposals/QOYLLJjH98k';return
                true;"
                onclick=3D"this.href=3D'https://groups.google.com/a/isocpp.=
org/forum/#!topic/std-proposals/QOYLLJjH98k';return
                true;">https://groups.google.com/a/<wbr>isocpp.org/forum/#!=
topic/std-<wbr>proposals/QOYLLJjH98k</a>
              I posted a similar proposal. <br>
              <br>
              Most of the proposed variable templates could be
              considered as Concepts Lite constraints. Have you
              considered to use CamelCase instead of the suffix _v?<br>
              <br>
              Instead of<br>
              <br>
              <pre>template &lt;class T, class... Args&gt; constexpr bool i=
s_constructible_v
  =3D is_constructible&lt;T, Args...&gt;::value;</pre>
              <br>
              include<br>
              <br>
              <pre>template &lt;class T, class... Args&gt; constexpr bool C=
onstructible
  =3D is_constructible&lt;T, Args...&gt;::value;</pre>
              <br>
              In this way we could <br>
              <pre><tt><big><big><small><font style=3D"font-size:8pt" size=
=3D"1"><big>template&lt; CopyConstructible T &gt;</big></font><font style=
=3D"font-size:8pt" size=3D"1"><big> bool f( T v );</big></font>

</small></big></big></tt>
</pre>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />

--------------050107040009070404000800--

.
