Hi, I have the following simple struct
And when I run the following code, I get an assertion:Code:module StompPOC { struct Message { string description; int value; }; };
The assertion is raised by the following piece of code, in the Ice/stream.h file:Code:std::vector<Ice::Byte> data; Ice::OutputStreamPtr dataOut = Ice::createOutputStream( communicator() ); StompPOC::Message msg; msg.description = "This is a byte message (Dynamic Iced)"; msg.value = 999; dataOut->write( msg ); ==> ASSERTION dataOut->finished( data );
What I am doing wrong?Code:template<StreamTraitType st> struct StreamWriter { template<typename T> static void write(const OutputStreamPtr&, const T&) { // This asserts because we end up writing something for which // we never defined a trait. assert(false); } };
Thanks in advance for any help.
Cyrille

Reply With Quote
