Hi all.
I have a program, simplified as follows:
#include <vector>
#include <list>
#include <fstream>

using namespace std;

class MyObj
	int val;

	MyObj(int v){ val = v; };

int main (int argc, char *argv[])
	int i, j;
	vector< list<MyObj*> > layers;

	for(i=0; i<5; i++)
		list<MyObj*> tmp;

		for(j=0; j<10; j++)
			tmp.push_back( new MyObj(j) );
	return 0;
I need to serialize/deserialize the object "layers".

Can anyone give me an example on how to do this with boost serialization library?

Thanks in advance.

Alessandro Candini

MEEO S.r.l.
Via Saragat 9
I-44122 Ferrara, Italy
Tel: +39 0532 1861501
Fax: +39 0532 1861637

"ATTENZIONE:le informazioni contenute in questo messaggio sono
da considerarsi confidenziali ed il loro utilizzo è riservato unicamente
al destinatario sopra indicato. Chi dovesse ricevere questo messaggio
per errore è tenuto ad informare il mittente ed a rimuoverlo
definitivamente da ogni supporto elettronico o cartaceo."

"WARNING:This message contains confidential and/or proprietary
information which may be subject to privilege or immunity and which
is intended for use of its addressee only. Should you receive this
message in error, you are kindly requested to inform the sender and
to definitively remove it from any paper or electronic format."