Topic: Is there anything wrong with "*nullptr
Author: Alisdair Meredith <alisdairm@me.com>
Date: Wed, 04 Oct 2017 19:51:54 -0400
Raw View
--Apple-Mail-F9251250-B9F3-4D09-9967-D40A4C8FEE46
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Adding =E2=80=98void &=E2=80=99 to the grammar now would break template met=
a programs that create SFINAE conditions based on that not being valid. I =
don=E2=80=99t know how often that is used, but it is certainly part of my a=
rsenal of template tricks.
Sent from my iPhone
> On Oct 4, 2017, at 7:48 PM, Vishal Oza <vickoza@gmail.com> wrote:
>=20
> Check out void_t by Walter Brown. He is "retired not dead". Inside joke b=
ut that is there to cover template argument deduction.
>=20
>> On Wednesday, October 4, 2017 at 6:11:42 PM UTC-5, shub...@gmail.com wro=
te:
>> Would "void&" be helpful in some cases of template argument deduction?
>>=20
>> If void is a type, syntactic sugar like "void&" could be useful, just li=
ke nullptr.
>>=20
>>=20
>>> On Wednesday, 4 October 2017 22:47:44 UTC+11, sbh wrote:
>>>=20
>>> Just curious.
>>>=20
>=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=
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/isoc=
pp.org/d/msgid/std-proposals/e662371c-129a-4e03-b482-603ef2cb53ab%40isocpp.=
org.
--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/2AF8F97B-33F3-483A-A8D7-98FC2C99BD41%40me.com.
--Apple-Mail-F9251250-B9F3-4D09-9967-D40A4C8FEE46
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=
=3Dutf-8"></head><body dir=3D"auto">Adding =E2=80=98void &=E2=80=99 to =
the grammar now would break template meta programs that create SFINAE condi=
tions based on that not being valid. I don=E2=80=99t know how often t=
hat is used, but it is certainly part of my arsenal of template tricks.<br>=
<br><div id=3D"AppleMailSignature">Sent from my iPhone</div><div><br>On Oct=
4, 2017, at 7:48 PM, Vishal Oza <<a href=3D"mailto:vickoza@gmail.com">v=
ickoza@gmail.com</a>> wrote:<br><br></div><blockquote type=3D"cite"><div=
><div dir=3D"ltr">Check out void_t by Walter Brown. He is "retired not dead=
". Inside joke but that is there to cover template argument deduction.<br><=
br>On Wednesday, October 4, 2017 at 6:11:42 PM UTC-5, shub...@<a href=3D"ht=
tp://gmail.com">gmail.com</a> wrote:<blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;"><div dir=3D"ltr">Would "void&" be helpful in some cases of templa=
te argument deduction?<div><br></div><div>If void is a type, syntactic suga=
r like "void&" could be useful, just like nullptr.</div><div><br></div>=
<div><br>On Wednesday, 4 October 2017 22:47:44 UTC+11, sbh wrote:<blockquo=
te class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br><div>Just curious.</div><div><br></div><=
/blockquote></div></div></blockquote></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" 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/e662371c-129a-4e03-b482-603ef2cb53ab%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.goo=
gle.com/a/isocpp.org/d/msgid/std-proposals/e662371c-129a-4e03-b482-603ef2cb=
53ab%40isocpp.org</a>.<br>
</div></blockquote></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" 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/2AF8F97B-33F3-483A-A8D7-98FC2C99BD41%=
40me.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
a/isocpp.org/d/msgid/std-proposals/2AF8F97B-33F3-483A-A8D7-98FC2C99BD41%40m=
e.com</a>.<br />
--Apple-Mail-F9251250-B9F3-4D09-9967-D40A4C8FEE46--
.