--
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-proposal...@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFdMc-3AfOQyYZ2%3DGVGEkfjTjvLA54YgiOHVan6g1ye40tOfPg%40mail.gmail.com.
Have you tried:remove_reference<decltype(*this)>: type
how many times a standard __CLASS__ macro has been proposed?
--
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-pr...@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.
--
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-proposal...@isocpp.org.
To post to this group, send email to std-pr...@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.
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-proposal...@isocpp.org.
To post to this group, send email to std-pr...@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.
El sáb., 12 de mayo de 2018 13:52, Thiago Macieira <thi...@macieira.org> escribió: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__).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.
--
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-proposal...@isocpp.org.
To post to this group, send email to std-pr...@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.org.
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-proposal...@isocpp.org.
To post to this group, send email to std-pr...@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.
--
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-pr...@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.