If data is a string with a null terminate character, will std::string copy all the characters from data?Code:std::string new_str = data; free(data);
So am i safe to free the data pointer?
Thank you.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |