Hi
Is this a quirk or is the system down? I’ve been a plus user for a year now. I came across this weird issue today. I’ve narrowed the hanging issue to this. Each time I request “Explain what is a std::unique_ptr with an example”.
The code generation freezes when it gets to the last where its printing the std::unique_ptr. It just hangs.
What I’ve noticed is that if the class is called Widget then it hangs, if I ask it use a different name then it finishes code generation. If I say use raw pointers it’s fine.
… This is the code generated and it hangs at the end:
#include
#include // include for std::unique_ptr
class Widget
{
public:
Widget()
{
std::cout << “Created\n”;
}
~Widget()
{
std::cout << “Destroyed\n”;
}
void greet()
{
std::cout << “Hello\n”;
}
};
int main()
{
{
std::unique_ptr
Finally gives up after network error.