Why is this error? C++ stringstream instance?
Posted on 2012-03-13
I am creating this wrapper class:
When I compile this it keep on telling me that there is an error in the mDataStream object definition in the .h file. I do not understand why. I have seen several examples on th enet and I do not see a problem. Can someobe tell me why?
void read(char *, int);
void write(const char*, int);
void operator<<(const char* );
void operator>>(char* );
std::stringstream mDataStream(std::stringstream::in | std::stringstream::out | std::stringstream::binary);
void BinaryStream::read(char* buffer, int buffersize)
void BinaryStream::write(const char* buffer, int buffersize)
void BinaryStream::operator<<(const char* inChar )
void BinaryStream::operator>>(char* inChar)