There is a problem regarding the way auto_ptr is defined in C++ Builder STL implementation.
try this:
std::auto_ptr<char> buf2(new char[1024]);
std::auto_ptr<char> buf;
buf = buf2;
I can not check it with your compiler version but it should work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.