|
Boost Users : |
From: Lukasz Dobrek (dobrek_at_[hidden])
Date: 2006-01-24 19:25:16
Basically can anybody give me a hint how to properly serialize this class,
using
boost serialization library?
Regards
Lukasz
class A
{
public:
A( int size ) : m_size( size )
{
m_ref_count = new int;
*m_ref_count = 1;
m_vec = new double [ m_size ];
}
~A(){
(*m_ref_count)--;
if ( *m_ref_count == 0 ){
delete m_vec;
}
}
A( const A & a )
: m_size ( a.m_size )
, m_ref_count( a.m_ref_count )
, m_vec( a.m_vec )
{
(*m_ref_count)++;
}
int * m_ref_count;
double * m_vec;
int m_size;
};
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net