Topic: __CLASS__
Author: "dgutson ." <danielgutson@gmail.com>
Date: Fri, 11 May 2018 13:46:34 -0300
Raw View
--0000000000001374c4056bf0e181
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
how many times a standard __CLASS__ macro has been proposed?
--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?
--=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/CAFdMc-3AfOQyYZ2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40=
tOfPg%40mail.gmail.com.
--0000000000001374c4056bf0e181
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">how many times a standard __CLASS__ macro has been propose=
d?<div><br></div><div><br clear=3D"all"><div><br></div>-- <br><div class=3D=
"gmail_signature" data-smartmail=3D"gmail_signature">Who=E2=80=99s got the =
sweetest disposition?<br>One guess, that=E2=80=99s who?<br>Who=E2=80=99d ne=
ver, ever start an argument?<br>Who never shows a bit of temperament?<br>Wh=
o's never wrong but always right?<br>Who'd never dream of starting =
a fight?<br>Who get stuck with all the bad luck? </div>
</div></div>
<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/CAFdMc-3AfOQyYZ2%3DGVGEkfjTjvLA54YgiO=
HVan6g1ye40tOfPg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3AfOQyYZ=
2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40tOfPg%40mail.gmail.com</a>.<br />
--0000000000001374c4056bf0e181--
.
Author: Corentin <corentin.jabot@gmail.com>
Date: Fri, 11 May 2018 18:51:54 +0200
Raw View
--000000000000b3c023056bf0f433
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I made a proposal for something that may be similar to what you are after
https://wg21.link/p0874r0 - It was not presented afaik.
Whatever you actually need, a non-macro-based solution would probably be
preferable !
Le ven. 11 mai 2018 =C3=A0 18:46, dgutson . <danielgutson@gmail.com> a =C3=
=A9crit :
> how many times a standard __CLASS__ macro has been proposed?
>
>
>
> --
> Who=E2=80=99s got the sweetest disposition?
> One guess, that=E2=80=99s who?
> Who=E2=80=99d never, ever start an argument?
> Who never shows a bit of temperament?
> Who's never wrong but always right?
> Who'd never dream of starting a fight?
> Who get stuck with all the bad luck?
>
> --
> 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/CAFdMc-3AfOQ=
yYZ2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40tOfPg%40mail.gmail.com
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3AfO=
QyYZ2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40tOfPg%40mail.gmail.com?utm_medium=3Dem=
ail&utm_source=3Dfooter>
> .
>
--=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/CA%2BOm%2BShjMDwd1w9sk2qPnLEsyLsu5cJSYCmZ7kw5oGg=
WTQEBvw%40mail.gmail.com.
--000000000000b3c023056bf0f433
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><span style=3D"font-size:13px">I made a proposal for somet=
hing that may be similar to what you are after=C2=A0</span><a href=3D"https=
://wg21.link/p0874r0" style=3D"font-size:13px">https://wg21.link/p0874r0</a=
><span style=3D"font-size:13px">=C2=A0- It was not presented afaik.</span><=
div style=3D"font-size:13px"><br></div><div style=3D"font-size:13px">Whatev=
er you actually need, a non-macro-based solution would probably be preferab=
le !</div><div><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">Le=
=C2=A0ven. 11 mai 2018 =C3=A0=C2=A018:46, dgutson . <<a href=3D"mailto:d=
anielgutson@gmail.com">danielgutson@gmail.com</a>> a =C3=A9crit=C2=A0:<b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">how many times a st=
andard __CLASS__ macro has been proposed?<div><br></div><div><br clear=3D"a=
ll"><div><br></div>-- <br><div class=3D"m_-1336901414481024915gmail_signatu=
re" data-smartmail=3D"gmail_signature">Who=E2=80=99s got the sweetest dispo=
sition?<br>One guess, that=E2=80=99s who?<br>Who=E2=80=99d never, ever star=
t an argument?<br>Who never shows a bit of temperament?<br>Who's never =
wrong but always right?<br>Who'd never dream of starting a fight?<br>Wh=
o get stuck with all the bad luck? </div>
</div></div>
<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" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/CAFdMc-3AfOQyYZ2%3DGVGEkfjTjvLA54YgiO=
HVan6g1ye40tOfPg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r" target=3D"_blank">https://groups.google.com/a/isocpp.org/d/msgid/std-pro=
posals/CAFdMc-3AfOQyYZ2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40tOfPg%40mail.gmail.c=
om</a>.<br>
</blockquote></div></div>
<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/CA%2BOm%2BShjMDwd1w9sk2qPnLEsyLsu5cJS=
YCmZ7kw5oGgWTQEBvw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CA%2BOm%2BShj=
MDwd1w9sk2qPnLEsyLsu5cJSYCmZ7kw5oGgWTQEBvw%40mail.gmail.com</a>.<br />
--000000000000b3c023056bf0f433--
.
Author: Cleiton Santoia <cleitonsantoia@gmail.com>
Date: Fri, 11 May 2018 10:38:50 -0700 (PDT)
Raw View
------=_Part_11102_1093551509.1526060330553
Content-Type: multipart/alternative;
boundary="----=_Part_11103_1958529517.1526060330553"
------=_Part_11103_1958529517.1526060330553
Content-Type: text/plain; charset="UTF-8"
Have you tried:
remove_reference<decltype(*this)>: type
--
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/2efabfb0-5b5d-4ea2-8e9e-f92cf71d8e9f%40isocpp.org.
------=_Part_11103_1958529517.1526060330553
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><br></div><div>=C2=A0 Have you tried:=C2=A0</div><div=
><br></div><div><font color=3D"#000000">=C2=A0 remove_reference<decltype=
(*this)>: type</font></div><div><font color=3D"#000000"><br></font></div=
><div><font color=3D"#000000"><br></font></div><div><font color=3D"#000000"=
><br></font></div><div><font color=3D"#000000"><br></font></div></div>
<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/2efabfb0-5b5d-4ea2-8e9e-f92cf71d8e9f%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/2efabfb0-5b5d-4ea2-8e9e-f92cf71d8e9f=
%40isocpp.org</a>.<br />
------=_Part_11103_1958529517.1526060330553--
------=_Part_11102_1093551509.1526060330553--
.
Author: Nevin Liber <nevin@eviloverlord.com>
Date: Fri, 11 May 2018 13:34:36 -0500
Raw View
--00000000000083cab2056bf2657a
Content-Type: text/plain; charset="UTF-8"
On Fri, May 11, 2018 at 12:38 PM Cleiton Santoia <cleitonsantoia@gmail.com>
wrote:
>
> Have you tried:
>
> remove_reference<decltype(*this)>: type
>
While I have no idea what he means by a __CLASS__ macro (it could be a
human-readable name, current type, floor wax or a dessert topping. :-)), if
he is trying to get the type, remove_reference won't work if you are in a
static function.
--
Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> +1-847-691-1404
--
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/CAGg_6%2BMJ_b2mRwLN1YE8KJ1BtKzntBUQ1gw3zoSKwoWV3B%2BC9w%40mail.gmail.com.
--00000000000083cab2056bf2657a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">On Fri, May 11, 2018 at 12:38 PM Cleiton Santoia <<a hr=
ef=3D"mailto:cleitonsantoia@gmail.com">cleitonsantoia@gmail.com</a>> wro=
te:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><div><br></div><div>=C2=A0 Have you tried:=C2=A0</div><div><br></d=
iv><div><font color=3D"#000000">=C2=A0 remove_reference<decltype(*this)&=
gt;: type</font></div></div></blockquote><div><br></div><div>While I have n=
o idea what he means by a __CLASS__ macro (it could be a human-readable nam=
e, current type, floor wax or a dessert topping. :-)), if he is trying to g=
et the type, remove_reference won't work if you are in a static functio=
n.</div></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartm=
ail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=C2=A0N=
evin ":-)" Liber=C2=A0 <mailto:<a href=3D"mailto:nevin@evilove=
rlord.com" target=3D"_blank">nevin@eviloverlord.com</a>> =C2=A0+1-847-69=
1-1404</div></div></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" 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/CAGg_6%2BMJ_b2mRwLN1YE8KJ1BtKzntBUQ1g=
w3zoSKwoWV3B%2BC9w%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGg_6%2BMJ_b=
2mRwLN1YE8KJ1BtKzntBUQ1gw3zoSKwoWV3B%2BC9w%40mail.gmail.com</a>.<br />
--00000000000083cab2056bf2657a--
.
Author: Nicol Bolas <jmckesson@gmail.com>
Date: Fri, 11 May 2018 11:45:33 -0700 (PDT)
Raw View
------=_Part_11578_371505088.1526064333618
Content-Type: multipart/alternative;
boundary="----=_Part_11579_2105055774.1526064333618"
------=_Part_11579_2105055774.1526064333618
Content-Type: text/plain; charset="UTF-8"
On Friday, May 11, 2018 at 12:46:38 PM UTC-4, dgutson wrote:
>
> how many times a standard __CLASS__ macro has been proposed?
>
Well, I did a site-specific search of WG21's papers
<https://www.google.com/search?q=__CLASS__&as_sitesearch=http://www.open-std.org/JTC1/SC22/WG21/docs/papers/>,
and found that something like it had been proposed. In N1534
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1534.txt>. This
macro resolved to a string containing the current class's name.
Is that what you were looking for?
--
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/c3ee215c-a98d-4151-9814-b61625e32f70%40isocpp.org.
------=_Part_11579_2105055774.1526064333618
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><br>On Friday, May 11, 2018 at 12:46:38 PM UTC-4, dgut=
son 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">how=
many times a standard __CLASS__ macro has been proposed?</div></blockquote=
><div><br>Well, I did a <a href=3D"https://www.google.com/search?q=3D__CLAS=
S__&as_sitesearch=3Dhttp://www.open-std.org/JTC1/SC22/WG21/docs/papers/=
">site-specific search of WG21's papers</a>, and found that something l=
ike it had been proposed. <a href=3D"http://www.open-std.org/jtc1/sc22/wg21=
/docs/papers/2003/n1534.txt">In N1534</a>. This macro resolved to a string =
containing the current class's name.<br><br>Is that what you were looki=
ng for?<br></div></div>
<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/c3ee215c-a98d-4151-9814-b61625e32f70%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/c3ee215c-a98d-4151-9814-b61625e32f70=
%40isocpp.org</a>.<br />
------=_Part_11579_2105055774.1526064333618--
------=_Part_11578_371505088.1526064333618--
.
Author: "dgutson ." <danielgutson@gmail.com>
Date: Fri, 11 May 2018 15:59:48 -0300
Raw View
--00000000000081ec3d056bf2bdd4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Fri, May 11, 2018 at 3:45 PM, Nicol Bolas <jmckesson@gmail.com> wrote:
>
>
> On Friday, May 11, 2018 at 12:46:38 PM UTC-4, dgutson wrote:
>>
>> how many times a standard __CLASS__ macro has been proposed?
>>
>
> Well, I did a site-specific search of WG21's papers
> <https://www.google.com/search?q=3D__CLASS__&as_sitesearch=3Dhttp://www.o=
pen-std.org/JTC1/SC22/WG21/docs/papers/>,
> and found that something like it had been proposed. In N1534
> <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1534.txt>. This
> macro resolved to a string containing the current class's name.
>
> Is that what you were looking for?
>
absolutely exactly. Thanks for googling it for me, I didn't find it before.
I will ask the author about what happened with it.
> --
> 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/c3ee215c-a98d-4151-
> 9814-b61625e32f70%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/c3ee215c-a9=
8d-4151-9814-b61625e32f70%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoot=
er>
> .
>
--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?
--=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/CAFdMc-06o6RO_hAOqOJrh2LiMpOuaaBHvR_CswcCyYpJ6U_=
ZLw%40mail.gmail.com.
--00000000000081ec3d056bf2bdd4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Fri, May 11, 2018 at 3:45 PM, Nicol Bolas <span dir=3D"ltr"><<a h=
ref=3D"mailto:jmckesson@gmail.com" target=3D"_blank">jmckesson@gmail.com</a=
>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><spa=
n class=3D""><br><br>On Friday, May 11, 2018 at 12:46:38 PM UTC-4, dgutson =
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">how many tim=
es a standard __CLASS__ macro has been proposed?</div></blockquote></span><=
div><br>Well, I did a <a href=3D"https://www.google.com/search?q=3D__CLASS_=
_&as_sitesearch=3Dhttp://www.open-std.org/JTC1/SC22/WG21/docs/papers/" =
target=3D"_blank">site-specific search of WG21's papers</a>, and found =
that something like it had been proposed. <a href=3D"http://www.open-std.or=
g/jtc1/sc22/wg21/docs/papers/2003/n1534.txt" target=3D"_blank">In N1534</a>=
.. This macro resolved to a string containing the current class's name.<=
br><br>Is that what you were looking for?<br></div></div></blockquote><div>=
<br></div><div>absolutely exactly. Thanks for googling it for me, I didn=
9;t find it before.</div><div><br></div><div>I will ask the author about wh=
at happened with it.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote=
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><=
div dir=3D"ltr"><div></div></div><span class=3D"">
<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" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br></span>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/c3ee215c-a98d-4151-9814-b61625e32f70%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/c3ee=
215c-a98d-4151-<wbr>9814-b61625e32f70%40isocpp.org</a><wbr>.<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature">Who=E2=80=99s got t=
he sweetest disposition?<br>One guess, that=E2=80=99s who?<br>Who=E2=80=99d=
never, ever start an argument?<br>Who never shows a bit of temperament?<br=
>Who's never wrong but always right?<br>Who'd never dream of starti=
ng a fight?<br>Who get stuck with all the bad luck? </div>
</div></div>
<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/CAFdMc-06o6RO_hAOqOJrh2LiMpOuaaBHvR_C=
swcCyYpJ6U_ZLw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-06o6RO_hAO=
qOJrh2LiMpOuaaBHvR_CswcCyYpJ6U_ZLw%40mail.gmail.com</a>.<br />
--00000000000081ec3d056bf2bdd4--
.
Author: Thiago Macieira <thiago@macieira.org>
Date: Fri, 11 May 2018 15:10:53 -0700
Raw View
On Friday, 11 May 2018 11:34:36 PDT Nevin Liber wrote:
> On Fri, May 11, 2018 at 12:38 PM Cleiton Santoia <cleitonsantoia@gmail.com>
>
> wrote:
> > Have you tried:
> >
> > remove_reference<decltype(*this)>: type
>
> While I have no idea what he means by a __CLASS__ macro (it could be a
> human-readable name, current type, floor wax or a dessert topping. :-)), if
> he is trying to get the type, remove_reference won't work if you are in a
> static function.
Or completely outside of a function:
struct S
{
decltype(this) next;
static const decltype(*this) shared;
};
With the corresponding implementation:
const auto S::shared = decltype(*this){};
It might be a lot easier to just have _ThisType or _This_t.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
--
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/1827054.BeU4cdH5qD%40tjmaciei-mobl1.
.
Author: Corentin <corentin.jabot@gmail.com>
Date: Sat, 12 May 2018 09:51:11 +0200
Raw View
--000000000000cb9760056bfd84c4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
That exemple make less sense, if you know S you don't need anything else.
const auto S::shared =3D decltype(S()){};
From within the class... I'd love feedback on my paper :)
Le sam. 12 mai 2018 =C3=A0 00:10, Thiago Macieira <thiago@macieira.org> a =
=C3=A9crit :
> On Friday, 11 May 2018 11:34:36 PDT Nevin Liber wrote:
> > On Fri, May 11, 2018 at 12:38 PM Cleiton Santoia <
> cleitonsantoia@gmail.com>
> >
> > wrote:
> > > Have you tried:
> > >
> > > remove_reference<decltype(*this)>: type
> >
> > While I have no idea what he means by a __CLASS__ macro (it could be a
> > human-readable name, current type, floor wax or a dessert topping. :-))=
,
> if
> > he is trying to get the type, remove_reference won't work if you are in=
a
> > static function.
>
> Or completely outside of a function:
>
> struct S
> {
> decltype(this) next;
> static const decltype(*this) shared;
> };
>
> With the corresponding implementation:
>
> const auto S::shared =3D decltype(*this){};
>
> It might be a lot easier to just have _ThisType or _This_t.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
>
>
>
> --
> 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/1827054.BeU4=
cdH5qD%40tjmaciei-mobl1
> .
>
--=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/CA%2BOm%2BSg0ip-fKxXca7W1sy84hwwjCD-quwSufUUv9V%=
2BYNDOGaw%40mail.gmail.com.
--000000000000cb9760056bfd84c4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">That exemple make less sense, if you know S you don't =
need anything else.=C2=A0=C2=A0<div>const auto S::shared =3D decltype(S()){=
};</div><div><br></div><div>From within the class... I'd love feedback =
on my paper :)=C2=A0<br><br><div class=3D"gmail_quote"><div dir=3D"ltr">Le=
=C2=A0sam. 12 mai 2018 =C3=A0=C2=A000:10, Thiago Macieira <<a href=3D"ma=
ilto:thiago@macieira.org">thiago@macieira.org</a>> a =C3=A9crit=C2=A0:<b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">On Friday, 11 May 2018 11:34:36 PDT =
Nevin Liber wrote:<br>
> On Fri, May 11, 2018 at 12:38 PM Cleiton Santoia <<a href=3D"mailto=
:cleitonsantoia@gmail.com" target=3D"_blank">cleitonsantoia@gmail.com</a>&g=
t;<br>
> <br>
> wrote:<br>
> >=C2=A0 =C2=A0Have you tried:<br>
> >=C2=A0 =C2=A0<br>
> >=C2=A0 =C2=A0remove_reference<decltype(*this)>: type<br>
> <br>
> While I have no idea what he means by a __CLASS__ macro (it could be a=
<br>
> human-readable name, current type, floor wax or a dessert topping. :-)=
), if<br>
> he is trying to get the type, remove_reference won't work if you a=
re in a<br>
> static function.<br>
<br>
Or completely outside of a function:<br>
<br>
struct S<br>
{<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 decltype(this) next;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 static const decltype(*this) shared;<br>
};<br>
<br>
With the corresponding implementation:<br>
<br>
const auto S::shared =3D decltype(*this){};<br>
<br>
It might be a lot easier to just have _ThisType or _This_t.<br>
<br>
-- <br>
Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"noref=
errer" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=3D"http://=
kde.org" rel=3D"noreferrer" target=3D"_blank">kde.org</a><br>
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center<br>
<br>
<br>
<br>
-- <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%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/1827054.BeU4cdH5qD%40tjmaciei-mobl1" =
rel=3D"noreferrer" target=3D"_blank">https://groups.google.com/a/isocpp.org=
/d/msgid/std-proposals/1827054.BeU4cdH5qD%40tjmaciei-mobl1</a>.<br>
</blockquote></div></div></div>
<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/CA%2BOm%2BSg0ip-fKxXca7W1sy84hwwjCD-q=
uwSufUUv9V%2BYNDOGaw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CA%2BOm%2BS=
g0ip-fKxXca7W1sy84hwwjCD-quwSufUUv9V%2BYNDOGaw%40mail.gmail.com</a>.<br />
--000000000000cb9760056bfd84c4--
.
Author: Thiago Macieira <thiago@macieira.org>
Date: Sat, 12 May 2018 09:52:11 -0700
Raw View
On Saturday, 12 May 2018 00:51:11 PDT Corentin wrote:
> That exemple make less sense, if you know S you don't need anything else.
> const auto S::shared = decltype(S()){};
>
> From within the class... I'd love feedback on my paper :)
I'm not saying you'd use it in this case. This is an extreme.
But having a type instead of a macro may be useful. It would clearly prevent
someone trying to do STRINGIFY(__CLASS__).
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
--
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/2181198.8Um9XG2qBb%40tjmaciei-mobl1.
.
Author: "dgutson ." <danielgutson@gmail.com>
Date: Sat, 12 May 2018 17:47:31 -0300
Raw View
--00000000000030c78b056c085d9a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
El s=C3=A1b., 12 de mayo de 2018 13:52, Thiago Macieira <thiago@macieira.or=
g>
escribi=C3=B3:
> On Saturday, 12 May 2018 00:51:11 PDT Corentin wrote:
> > That exemple make less sense, if you know S you don't need anything els=
e.
> > const auto S::shared =3D decltype(S()){};
> >
> > From within the class... I'd love feedback on my paper :)
>
> I'm not saying you'd use it in this case. This is an extreme.
>
> But having a type instead of a macro may be useful. It would clearly
> prevent
> someone trying to do STRINGIFY(__CLASS__).
>
I was just asking for something simple and intuitive for people familiar
with __FUNCTION__ or __LINE__, which is nothing more but the name of the
class, for debugging and logging messages.
We should stop turning simple things unnecessarily complicated.
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
>
>
>
> --
> 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/2181198.8Um9=
XG2qBb%40tjmaciei-mobl1
> .
>
--=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/CAFdMc-3TO%3DezZW3KJjahaUQCWppsuTNnbDDTY49X4OFTf=
zocOA%40mail.gmail.com.
--00000000000030c78b056c085d9a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=
El s=C3=A1b., 12 de mayo de 2018 13:52, Thiago Macieira <<a href=3D"mail=
to:thiago@macieira.org">thiago@macieira.org</a>> escribi=C3=B3:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
px #ccc solid;padding-left:1ex">On Saturday, 12 May 2018 00:51:11 PDT Coren=
tin wrote:<br>
> That exemple make less sense, if you know S you don't need anythin=
g else.<br>
> const auto S::shared =3D decltype(S()){};<br>
> <br>
> From within the class... I'd love feedback on my paper :)<br>
<br>
I'm not saying you'd use it in this case. This is an extreme.<br>
<br>
But having a type instead of a macro may be useful. It would clearly preven=
t <br>
someone trying to do STRINGIFY(__CLASS__).<br></blockquote></div></div><div=
dir=3D"auto"><br></div><div dir=3D"auto">I was just asking for something s=
imple and intuitive for people familiar with __FUNCTION__ or __LINE__, whic=
h is nothing more but the name of the class, for debugging and logging mess=
ages.</div><div dir=3D"auto">We should stop turning simple things unnecessa=
rily complicated.</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></=
div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote=
"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex">
<br>
-- <br>
Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"noref=
errer noreferrer" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=
=3D"http://kde.org" rel=3D"noreferrer noreferrer" target=3D"_blank">kde.org=
</a><br>
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center<br>
<br>
<br>
<br>
-- <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%2Bunsubscribe@isocpp.org" target=3D=
"_blank" rel=3D"noreferrer">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank" rel=3D"noreferrer">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/2181198.8Um9XG2qBb%40tjmaciei-mobl1" =
rel=3D"noreferrer noreferrer" target=3D"_blank">https://groups.google.com/a=
/isocpp.org/d/msgid/std-proposals/2181198.8Um9XG2qBb%40tjmaciei-mobl1</a>.<=
br>
</blockquote></div></div></div>
<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/CAFdMc-3TO%3DezZW3KJjahaUQCWppsuTNnbD=
DTY49X4OFTfzocOA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3TO%3Dez=
ZW3KJjahaUQCWppsuTNnbDDTY49X4OFTfzocOA%40mail.gmail.com</a>.<br />
--00000000000030c78b056c085d9a--
.
Author: Nicol Bolas <jmckesson@gmail.com>
Date: Sat, 12 May 2018 14:23:46 -0700 (PDT)
Raw View
------=_Part_17634_2120953066.1526160226171
Content-Type: multipart/alternative;
boundary="----=_Part_17635_392741020.1526160226172"
------=_Part_17635_392741020.1526160226172
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Saturday, May 12, 2018 at 4:47:44 PM UTC-4, dgutson wrote:
>
>
>
> El s=C3=A1b., 12 de mayo de 2018 13:52, Thiago Macieira <thi...@macieira.=
org=20
> <javascript:>> escribi=C3=B3:
>
>> On Saturday, 12 May 2018 00:51:11 PDT Corentin wrote:
>> > That exemple make less sense, if you know S you don't need anything=20
>> else.
>> > const auto S::shared =3D decltype(S()){};
>> >=20
>> > From within the class... I'd love feedback on my paper :)
>>
>> I'm not saying you'd use it in this case. This is an extreme.
>>
>> But having a type instead of a macro may be useful. It would clearly=20
>> prevent=20
>> someone trying to do STRINGIFY(__CLASS__).
>>
>
> I was just asking for something simple and intuitive for people familiar=
=20
> with __FUNCTION__ or __LINE__, which is nothing more but the name of the=
=20
> class, for debugging and logging messages.
> We should stop turning simple things unnecessarily complicated.
>
To be fair though, you didn't make that clear in your initial post. Several=
=20
people in this thread thought that this macro would resolve to the class=20
typename, not a string naming the type.
--=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/4938dd9a-aa72-48dc-876f-fbb21f7e1ff6%40isocpp.or=
g.
------=_Part_17635_392741020.1526160226172
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><br>On Saturday, May 12, 2018 at 4:47:44 PM UTC-4, dgu=
tson 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"auto"><=
div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">El s=C3=A1b., 12 de=
mayo de 2018 13:52, Thiago Macieira <<a href=3D"javascript:" target=3D"=
_blank" gdf-obfuscated-mailto=3D"nUV1cawgCAAJ" rel=3D"nofollow" onmousedown=
=3D"this.href=3D'javascript:';return true;" onclick=3D"this.href=3D=
'javascript:';return true;">thi...@macieira.org</a>> escribi=C3=
=B3:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">On Saturday, 12 May 2018 00:51=
:11 PDT Corentin wrote:<br>
> That exemple make less sense, if you know S you don't need anythin=
g else.<br>
> const auto S::shared =3D decltype(S()){};<br>
> <br>
> From within the class... I'd love feedback on my paper :)<br>
<br>
I'm not saying you'd use it in this case. This is an extreme.<br>
<br>
But having a type instead of a macro may be useful. It would clearly preven=
t <br>
someone trying to do STRINGIFY(__CLASS__).<br></blockquote></div></div><div=
dir=3D"auto"><br></div><div dir=3D"auto">I was just asking for something s=
imple and intuitive for people familiar with __FUNCTION__ or __LINE__, whic=
h is nothing more but the name of the class, for debugging and logging mess=
ages.</div><div dir=3D"auto">We should stop turning simple things unnecessa=
rily complicated.</div></div></blockquote><div><br>To be fair though, you d=
idn't make that clear in your initial post. Several people in this thre=
ad thought that this macro would resolve to the class typename, not a strin=
g naming the type.</div></div>
<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/4938dd9a-aa72-48dc-876f-fbb21f7e1ff6%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/4938dd9a-aa72-48dc-876f-fbb21f7e1ff6=
%40isocpp.org</a>.<br />
------=_Part_17635_392741020.1526160226172--
------=_Part_17634_2120953066.1526160226171--
.
Author: "dgutson ." <danielgutson@gmail.com>
Date: Sat, 12 May 2018 18:30:28 -0300
Raw View
--000000000000d38eac056c08f627
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
El s=C3=A1b., 12 de mayo de 2018 18:23, Nicol Bolas <jmckesson@gmail.com>
escribi=C3=B3:
>
>
> On Saturday, May 12, 2018 at 4:47:44 PM UTC-4, dgutson wrote:
>>
>>
>>
>> El s=C3=A1b., 12 de mayo de 2018 13:52, Thiago Macieira <thi...@macieira=
..org>
>> escribi=C3=B3:
>>
>>> On Saturday, 12 May 2018 00:51:11 PDT Corentin wrote:
>>> > That exemple make less sense, if you know S you don't need anything
>>> else.
>>> > const auto S::shared =3D decltype(S()){};
>>> >
>>> > From within the class... I'd love feedback on my paper :)
>>>
>>> I'm not saying you'd use it in this case. This is an extreme.
>>>
>>> But having a type instead of a macro may be useful. It would clearly
>>> prevent
>>> someone trying to do STRINGIFY(__CLASS__).
>>>
>>
>> I was just asking for something simple and intuitive for people familiar
>> with __FUNCTION__ or __LINE__, which is nothing more but the name of the
>> class, for debugging and logging messages.
>> We should stop turning simple things unnecessarily complicated.
>>
>
> To be fair though, you didn't make that clear in your initial post.
> Several people in this thread thought that this macro would resolve to th=
e
> class typename, not a string naming the type.
>
My bad. I thought it was obvious (you in fact found the exact proposal
indeed).
Anyways sorry everybody for the assumption and lack of clarification.
--=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/isocpp.org/d/msgid/std-proposals/4938dd9a-aa7=
2-48dc-876f-fbb21f7e1ff6%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/4938dd9a-aa=
72-48dc-876f-fbb21f7e1ff6%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoot=
er>
> .
>
--=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/CAFdMc-2Cy%2BwVBKrcnbjCvcVMEBd_Mgyesu810KTBKLGR4=
nBPNA%40mail.gmail.com.
--000000000000d38eac056c08f627
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=
El s=C3=A1b., 12 de mayo de 2018 18:23, Nicol Bolas <<a href=3D"mailto:j=
mckesson@gmail.com">jmckesson@gmail.com</a>> escribi=C3=B3:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><br>On Saturday, May 12, 2=
018 at 4:47:44 PM UTC-4, dgutson wrote:<blockquote class=3D"gmail_quote" st=
yle=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1=
ex"><div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"l=
tr">El s=C3=A1b., 12 de mayo de 2018 13:52, Thiago Macieira <<a rel=3D"n=
ofollow noreferrer">thi...@macieira.org</a>> escribi=C3=B3:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex">On Saturday, 12 May 2018 00:51:11 PDT Corentin =
wrote:<br>
> That exemple make less sense, if you know S you don't need anythin=
g else.<br>
> const auto S::shared =3D decltype(S()){};<br>
> <br>
> From within the class... I'd love feedback on my paper :)<br>
<br>
I'm not saying you'd use it in this case. This is an extreme.<br>
<br>
But having a type instead of a macro may be useful. It would clearly preven=
t <br>
someone trying to do STRINGIFY(__CLASS__).<br></blockquote></div></div><div=
dir=3D"auto"><br></div><div dir=3D"auto">I was just asking for something s=
imple and intuitive for people familiar with __FUNCTION__ or __LINE__, whic=
h is nothing more but the name of the class, for debugging and logging mess=
ages.</div><div dir=3D"auto">We should stop turning simple things unnecessa=
rily complicated.</div></div></blockquote><div><br>To be fair though, you d=
idn't make that clear in your initial post. Several people in this thre=
ad thought that this macro would resolve to the class typename, not a strin=
g naming the type.</div></div></blockquote></div></div><div dir=3D"auto"><b=
r></div><div dir=3D"auto">My bad. I thought it was obvious=C2=A0 (you in fa=
ct found the exact proposal indeed).</div><div dir=3D"auto">Anyways sorry e=
verybody for the assumption and lack of clarification.=C2=A0</div><div dir=
=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D"auto"><div clas=
s=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex">
<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" target=3D"_=
blank" rel=3D"noreferrer">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank" rel=3D"noreferrer">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/4938dd9a-aa72-48dc-876f-fbb21f7e1ff6%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank" =
rel=3D"noreferrer">https://groups.google.com/a/isocpp.org/d/msgid/std-propo=
sals/4938dd9a-aa72-48dc-876f-fbb21f7e1ff6%40isocpp.org</a>.<br>
</blockquote></div></div></div>
<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/CAFdMc-2Cy%2BwVBKrcnbjCvcVMEBd_Mgyesu=
810KTBKLGR4nBPNA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-2Cy%2BwV=
BKrcnbjCvcVMEBd_Mgyesu810KTBKLGR4nBPNA%40mail.gmail.com</a>.<br />
--000000000000d38eac056c08f627--
.
Author: Thiago Macieira <thiago@macieira.org>
Date: Sat, 12 May 2018 20:47:00 -0700
Raw View
On Saturday, 12 May 2018 13:47:31 PDT dgutson . wrote:
> I was just asking for something simple and intuitive for people familiar
> with __FUNCTION__ or __LINE__, which is nothing more but the name of the
> class, for debugging and logging messages.
> We should stop turning simple things unnecessarily complicated.
If you want the class name inside member functions for logging, you already
have it: it's part of __FUNCTION__.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
--
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/1544149.IVPBvGKrrZ%40tjmaciei-mobl1.
.
Author: "dgutson ." <danielgutson@gmail.com>
Date: Sun, 13 May 2018 07:43:59 -0300
Raw View
--000000000000ab7868056c140c86
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
El dom., 13 de mayo de 2018 0:47, Thiago Macieira <thiago@macieira.org>
escribi=C3=B3:
> On Saturday, 12 May 2018 13:47:31 PDT dgutson . wrote:
> > I was just asking for something simple and intuitive for people familia=
r
> > with __FUNCTION__ or __LINE__, which is nothing more but the name of th=
e
> > class, for debugging and logging messages.
> > We should stop turning simple things unnecessarily complicated.
>
> If you want the class name inside member functions for logging, you
> already
> have it: it's part of __FUNCTION__.
>
At least not in latest gcc. That's why it provides __PRETTY_FUNCTION__ .
Are you sure? Where in the std says so?
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
>
>
>
> --
> 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/1544149.IVPB=
vGKrrZ%40tjmaciei-mobl1
> .
>
--=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/CAFdMc-3N1pA3mZ9eKcmGngn8M1LZ376MmeSGKz99B9K1PTq=
8ew%40mail.gmail.com.
--000000000000ab7868056c140c86
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=
El dom., 13 de mayo de 2018 0:47, Thiago Macieira <<a href=3D"mailto:thi=
ago@macieira.org">thiago@macieira.org</a>> escribi=C3=B3:<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex">On Saturday, 12 May 2018 13:47:31 PDT dgutson . w=
rote:<br>
> I was just asking for something simple and intuitive for people famili=
ar<br>
> with __FUNCTION__ or __LINE__, which is nothing more but the name of t=
he<br>
> class, for debugging and logging messages.<br>
> We should stop turning simple things unnecessarily complicated.<br>
<br>
If you want the class name inside member functions for logging, you already=
<br>
have it: it's part of __FUNCTION__.<br></blockquote></div></div><div di=
r=3D"auto"><br></div><div dir=3D"auto">At least not in latest gcc. That'=
;s why it provides __PRETTY_FUNCTION__ .</div><div dir=3D"auto"><br></div><=
div dir=3D"auto">Are you sure? Where in the std says so?</div><div dir=3D"a=
uto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
<br>
-- <br>
Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"noref=
errer noreferrer" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=
=3D"http://kde.org" rel=3D"noreferrer noreferrer" target=3D"_blank">kde.org=
</a><br>
=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center<br>
<br>
<br>
<br>
-- <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%2Bunsubscribe@isocpp.org" target=3D=
"_blank" rel=3D"noreferrer">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank" rel=3D"noreferrer">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/1544149.IVPBvGKrrZ%40tjmaciei-mobl1" =
rel=3D"noreferrer noreferrer" target=3D"_blank">https://groups.google.com/a=
/isocpp.org/d/msgid/std-proposals/1544149.IVPBvGKrrZ%40tjmaciei-mobl1</a>.<=
br>
</blockquote></div></div></div>
<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/CAFdMc-3N1pA3mZ9eKcmGngn8M1LZ376MmeSG=
Kz99B9K1PTq8ew%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3N1pA3mZ9e=
KcmGngn8M1LZ376MmeSGKz99B9K1PTq8ew%40mail.gmail.com</a>.<br />
--000000000000ab7868056c140c86--
.
Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date: Sun, 13 May 2018 13:48:35 +0300
Raw View
On 13 May 2018 at 13:43, dgutson . <danielgutson@gmail.com> wrote:
>> If you want the class name inside member functions for logging, you
>> already
>> have it: it's part of __FUNCTION__.
>
>
> At least not in latest gcc. That's why it provides __PRETTY_FUNCTION__ .
>
> Are you sure? Where in the std says so?
Quite obviously nowhere, because the standard says nothing about __FUNCTION__.
--
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/CAFk2RUY0P%3DM_yBwr3d5u9%2Bpgu3XZtDibWQuuZJrDT1tB26dhKA%40mail.gmail.com.
.
Author: "dgutson ." <danielgutson@gmail.com>
Date: Sun, 13 May 2018 10:40:59 -0300
Raw View
--0000000000000183ee056c1685db
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, May 13, 2018 at 7:48 AM, Ville Voutilainen <
ville.voutilainen@gmail.com> wrote:
> On 13 May 2018 at 13:43, dgutson . <danielgutson@gmail.com> wrote:
> >> If you want the class name inside member functions for logging, you
> >> already
> >> have it: it's part of __FUNCTION__.
> >
> >
> > At least not in latest gcc. That's why it provides __PRETTY_FUNCTION__ =
..
> >
> > Are you sure? Where in the std says so?
>
> Quite obviously nowhere, because the standard says nothing about
> __FUNCTION__.
>
That's because it is in the C std? And the C++ doesn't "override" that part=
?
In such a case there is no way that __FUNCTION__ can contain the scope as
part of it as currently specified.
>
> --
> 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/CAFk2RUY0P%3DM_yBwr3d5u9%
> 2Bpgu3XZtDibWQuuZJrDT1tB26dhKA%40mail.gmail.com.
>
--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?
--=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/CAFdMc-0POx2zFk7f4%3Dd6tidwwqSESMU4Vt0Xn7ooycXpG=
_8ZBw%40mail.gmail.com.
--0000000000000183ee056c1685db
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, May 13, 2018 at 7:48 AM, Ville Voutilainen <span dir=3D"ltr">&l=
t;<a href=3D"mailto:ville.voutilainen@gmail.com" target=3D"_blank">ville.vo=
utilainen@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><span class=3D"">On 13 May 2018 at 13:43, dgutson . <<a href=3D"mailto:=
danielgutson@gmail.com">danielgutson@gmail.com</a>> wrote:<br>
>> If you want the class name inside member functions for logging, yo=
u<br>
>> already<br>
>> have it: it's part of __FUNCTION__.<br>
><br>
><br>
> At least not in latest gcc. That's why it provides __PRETTY_FUNCTI=
ON__ .<br>
><br>
> Are you sure? Where in the std says so?<br>
<br>
</span>Quite obviously nowhere, because the standard says nothing about __F=
UNCTION__.<br></blockquote><div><br></div><div>That's because it is in =
the C std? And the C++ doesn't "override" that part?</div><di=
v>In such a case there is no way that __FUNCTION__ can contain the scope as=
part of it as currently specified.</div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">
<span class=3D""><br>
-- <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%2Bunsubscribe@isocpp.org">std-propo=
sals+unsubscribe@<wbr>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>
</span>To view this discussion on the web visit <a href=3D"https://groups.g=
oogle.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUY0P%3DM_yBwr3d5u9%2Bpgu=
3XZtDibWQuuZJrDT1tB26dhKA%40mail.gmail.com" rel=3D"noreferrer" target=3D"_b=
lank">https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposal=
s/CAFk2RUY0P%3DM_<wbr>yBwr3d5u9%<wbr>2Bpgu3XZtDibWQuuZJrDT1tB26dhKA<wbr>%40=
mail.gmail.com</a>.<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature">Who=E2=80=99s got t=
he sweetest disposition?<br>One guess, that=E2=80=99s who?<br>Who=E2=80=99d=
never, ever start an argument?<br>Who never shows a bit of temperament?<br=
>Who's never wrong but always right?<br>Who'd never dream of starti=
ng a fight?<br>Who get stuck with all the bad luck? </div>
</div></div>
<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/CAFdMc-0POx2zFk7f4%3Dd6tidwwqSESMU4Vt=
0Xn7ooycXpG_8ZBw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-0POx2zFk=
7f4%3Dd6tidwwqSESMU4Vt0Xn7ooycXpG_8ZBw%40mail.gmail.com</a>.<br />
--0000000000000183ee056c1685db--
.