Home Comments

Overloaded << and >> in C++ for serialization.

ArunArun Member
Hello team @ zeroC!

Could you please provide overloaded << and >> operator functions for serialization in C++? Or is this already there and have I missed it?

The code would look like the following:
m_osPtr = Ice::createOutputStream(m_iceCommPtr);

m_osPtr << aString;
m_osPtr << aBool;
m_osStr << myObject;

// ...


When a lot of things have to be serialized and deserialized, the above could make things a bit more convenient.

Regards,
Arun.
Sign In or Register to comment.