- User Since
- Jul 10 2016, 6:38 AM (150 w, 7 h)
Aug 1 2016
I have an segfault on all the source files of my project when I enable this check (it works ok when I disable this check). Sorry I don't have time to post a minimal source file producing the segfault. I will maybe tomorrow, or in two weeks.
Jul 19 2016
Jul 18 2016
Jul 14 2016
having studied cpp core guidelines in more depth, I completely understand that the problem in the case I described is that the function receiving PRETTY_FUNCTION takes a const char* parameter, whereas it should take a czstring or szstring_span. As a consequence this patch is not a good thing.
Jul 12 2016
Well, C++ Core Guidelines advises in this case to correct function receiving PRETTY_FUNCTION: the parameter type should not be const char* ( https://github.com/isocpp/CppCoreGuidelines/issues/640 )
I'm not sure if it should be cstring_span, czstring_span, or czstring.
In case it is not possible to change this function, I guess the only solution is static_cast<const char*>(__PRETTY_FUNCTION)