Hello everybody!
I have a problem during working on my program. I have std::ostream& oStr and I want to calculate its size, but I can't. In google I have found a method:
1 2
oStr.seekp(0, std::ios::end);
int sizeOfFile = (int)oStr.tellp();
But it returns -1. Please help me find out size of the std::ostream& oStr