Original Post
Hi,
For the sake of sounding incredibly stupid and having that stupidity forever archived on gamedev...
How do I clear a stringstream? As far as I can tell, my C++ reference completely omits it. I tried:
std::stringstream Buffer;
for( Counter_1 = Child_Count - 1; Counter_1 >= 0; Counter_1 -- )
{
Buffer << "[" << Counter_1 << "]";
EAP_Memory.Destroy( Buffer.str() );
Buffer.flush();
}
But this seems to have the effect of absolutely nothing . Destroy gets called subsequently with "[4]", "[4][3]", "[4][3][2]", etc.
Ah the joys of converting a char* program to use the string class...
- Jeff Leigh
Enygma Arts
[edited by - Jeff Leigh on September 25, 2002 5:14:57 PM]
[edited by - Jeff Leigh on September 25, 2002 5:16:00 PM]