220 9636 <17f41a95-ec00-491b-8cb0-0df95c4067c8@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: jgottman6@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Defect Report: No template aliases defined for new
 type traits
Date: Wed, 5 Mar 2014 19:39:19 -0800 (PST)
Lines: 63
Approved: news@gmane.org
Message-ID: <17f41a95-ec00-491b-8cb0-0df95c4067c8@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1292_7458619.1394077159725"
X-Trace: ger.gmane.org 1394077153 20707 80.91.229.3 (6 Mar 2014 03:39:13 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 6 Mar 2014 03:39:13 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD7LHGWIQEPRB2G336MAKGQESPUMDUY@isocpp.org Thu Mar 06 04:39:22 2014
Return-path: <std-proposals+bncBD7LHGWIQEPRB2G336MAKGQESPUMDUY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ve0-f198.google.com ([209.85.128.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD7LHGWIQEPRB2G336MAKGQESPUMDUY@isocpp.org>)
	id 1WLP9W-0006jA-48
	for gclcip-std-proposals@m.gmane.org; Thu, 06 Mar 2014 04:39:22 +0100
Original-Received: by mail-ve0-f198.google.com with SMTP id oz11sf5023610veb.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 05 Mar 2014 19:39:21 -0800 (PST)
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:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=PLCWNpmSyFWVCkOiAfmnCC03UNwtIRi8lTS4qarVSyI=;
        b=WwW+lrLWnnBmoKdDFCx1viUwTi54T/aGp8lg7FTbaBCbtV8cBGKsPvFvo8T5A6uTcH
         r9Q4raBfUxuAb0oYjqABE2wAzxe+AsGDFBFPsC8Nl+ImJ8dT+sJ1HCBQv3wLJpT6w4Z/
         fBxaVJ/Ox1sPBCIOPWqDk7eOf6CS5EVrU0Q0HwJPoF+bPhqg88ar0eL6eQj+U3WPgp26
         HdwrKfw49r97Lmo3LfA6mWcasY2SWtNn6WQe71pDru3ri5AT+V3mHayYHZW1BxgLIN66
         Ziin+YPbjoLAVrXDKn6t/0uQUloXcrXT8T5UECZwddMhLVWP6znElapelg47xKb7u7SV
         A6dw==
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
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=PLCWNpmSyFWVCkOiAfmnCC03UNwtIRi8lTS4qarVSyI=;
        b=bMoLsOuno06h9jOi1VGeYneyuAXBQvedl/LE/Y3t3CC6czF0RPmyFkCsfbQdNel9Uj
         La+YQcARaseKXDhkDKLdGkzSFYopMyYzvQJBA78UskqbvoABuAahsXad6ChOfFEywcYV
         GsC+zAr69FWj5lwc6QlK3Zb6IkgwAYnmf/4lyXnHnsSgJMhwEZjugrZzRMmUg9cin7os
         Adzx5DFmyY+z6XO09ZfGXbgEIwlyqLZjIPEjwvVuf0C+wa18HE4+uNCWwbFRWTKHgXp9
         XYLcdXD/8m3PagBzKjqFq6oTu+1cVGcOnV7zCTvRT9oGeYt0ttM3rrYFuxNz7t87firP
         HsHg==
X-Gm-Message-State: ALoCoQnhcy66gNzHiMsYTDA/R2OBRRLhKmn6gxc3vdQ1Ppd6Koln2MOo0Zfk2ydN69ID+Br00mLS
X-Received: by 10.236.131.44 with SMTP id l32mr3547562yhi.27.1394077161142;
        Wed, 05 Mar 2014 19:39:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.39.202 with SMTP id v68ls537048qgv.88.gmail; Wed, 05 Mar
 2014 19:39:20 -0800 (PST)
X-Received: by 10.140.107.138 with SMTP id h10mr205197qgf.2.1394077160218;
        Wed, 05 Mar 2014 19:39:20 -0800 (PST)
X-Original-Sender: jgottman6@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: <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:9636
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9636>

------=_Part_1292_7458619.1394077159725
Content-Type: text/plain; charset=UTF-8

The library fundamentals TR defines two new type trait template classes: 
invocation_type and raw_invocation_type.  But it does not define the 
corresponding template aliases.  Note that both of these classes define a 
member typedef type and no other public members, so according to the 
argument in N3887 the template aliases should be defined.

Proposed Resolution:

Add the following to section 3.3.2 of the Library Fundamentals 
specification:

template <class X> using invocation_type_t = typename 
invocation_type<X>::type;

template<class X> using raw_invocation_type_t = typename 
raw_invocation_type<X>::type;

Joe Gottman

-- 

--- 
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_1292_7458619.1394077159725
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The library fundamentals TR defines two new type trait tem=
plate classes: invocation_type and raw_invocation_type.&nbsp; But it does n=
ot define the corresponding template aliases.&nbsp; Note that both of these=
 classes define a member typedef type and no other public members, so accor=
ding to the argument in N3887 the template aliases should be defined.<br><b=
r>Proposed Resolution:<br><br>Add the following to section<code> 3.3.2 of t=
he Library Fundamentals specification:<br><br>template &lt;class X&gt; usin=
g invocation_type_t =3D typename invocation_type&lt;X&gt;::type;<br><br>tem=
plate&lt;class X&gt; using raw_invocation_type_t =3D typename raw_invocatio=
n_type&lt;X&gt;::type;<br><br>Joe Gottman<br></code></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_1292_7458619.1394077159725--

.
