I have an object that cannot be copied, a NetGame because it has a stringstream in it.
I have it declared in my class as:
NetGame m_game;
You can just write a reset method for class NetGame.
void NetGame::reset()
{
/*u can just reset the attribute u need*/
}
Then you can invoke the method in the setAcitvity function.
void ServerTable::setActive( bool active )
{
//reset for now
if(m_active && !active)
{
m_inProgress = false;
}
m_active.reset();
}