Topic: how should handled function(s) overloads in N3951?


Author: dmikhalev@gmail.com
Date: Wed, 25 Feb 2015 18:58:39 -0800 (PST)
Raw View
------=_Part_2870_1506732443.1424919519183
Content-Type: multipart/alternative;
 boundary="----=_Part_2871_1880700263.1424919519186"

------=_Part_2871_1880700263.1424919519186
Content-Type: text/plain; charset=UTF-8

While reading N3951 it occurred to me that typedef<T> and  typename<T>,
where T is identifier of overloaded function, gives non described behavior
should it be  same error as using &T (where T is same function identifier),
or other behavior?

example:

int foo_int ( int val ) { return val + 1 ; }
int foo_int ()            { return 0; }

void test()
{
auto mytuple = make_tuple( typedef<foo_int>... ) ;
vector<string> names{ typename<foo_int>... } ;
}

--

---
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_2871_1880700263.1424919519186
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>While reading N3951 it occurred to me that typedef&lt=
;T&gt; and &nbsp;typename&lt;T&gt;, where T is&nbsp;identifier of overloade=
d function, gives non described behavior</div><div>should it&nbsp;be&nbsp; =
same error as using &amp;T (where T is same function identifier), or other =
behavior?</div><div><br></div><div>example:</div><div><br></div><div>int fo=
o_int ( int val ) { return val + 1 ; }</div><div><div>int foo_int ()&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;return&n=
bsp;0; }</div><div><br></div><div>void test()</div><div>{</div><div>auto my=
tuple =3D make_tuple( typedef&lt;foo_int&gt;... ) ;</div><div>vector&lt;str=
ing&gt; names{ typename&lt;foo_int&gt;... } ;</div><div>}</div><div><br></d=
iv></div></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_2871_1880700263.1424919519186--
------=_Part_2870_1506732443.1424919519183--

.