Boost logo

Boost :

From: Dmitry Smirnov (basilisk_at_[hidden])
Date: 2006-08-11 03:51:07

Hi, Ion!

It seems I found the difference between "resize" and "reserve"

After changing resize to reserve in following code
m_objSendVectorStream.tellp() will return -1 instead of size of data
packet :-(

m_objSendVectorStream.resize( QueueSettings::maxMessageSize() );

m_objSendVectorStream.seekp( 0 );
boost::archive::defOArchive objOArchive( m_objSendVectorStream );
objOArchive << objData;

Boost list run by bdawes at, gregod at, cpdaniel at, john at