Date: Wed, 30 Nov 2022 17:05:49 +0100
On 29/11/2022 23.59, Tom Honermann wrote:
> It is still possible to do the bad thing, but one has to be explicit about it. That isn't a concern here.
>
> std::wcout << std::to_string(std::stacktrace::current()).c_str();
Sorry, but
#include <string>
#include <iostream>
int main()
{
std::wcout << std::string() << std::endl;
}
doesn't compile for me. I believe your "explicit"
example is ill-formed.
Jens
> It is still possible to do the bad thing, but one has to be explicit about it. That isn't a concern here.
>
> std::wcout << std::to_string(std::stacktrace::current()).c_str();
Sorry, but
#include <string>
#include <iostream>
int main()
{
std::wcout << std::string() << std::endl;
}
doesn't compile for me. I believe your "explicit"
example is ill-formed.
Jens
Received on 2022-11-30 16:05:56