32#ifdef _QX_ENABLE_BOOST
33#ifndef _QX_SERIALIZE_QDATASTREAM_BOOST_SCOPED_PTR_H_
34#define _QX_SERIALIZE_QDATASTREAM_BOOST_SCOPED_PTR_H_
47#include <QtCore/qdatastream.h>
50QDataStream &
operator<< (QDataStream & stream,
const boost::scoped_ptr<T> & t)
52 qint8 iIsNull = (t ? 0 : 1);
54 if (t) { stream << (* t); }
59QDataStream &
operator>> (QDataStream & stream, boost::scoped_ptr<T> & t)
63 if (! iIsNull) { t.reset(
new T()); stream >> (* t); }
QDataStream & operator>>(QDataStream &stream, boost::scoped_ptr< T > &t)
QDataStream & operator<<(QDataStream &stream, const boost::scoped_ptr< T > &t)