Krzysztof Czainski:

>2012/11/22 Olivier Austina <olivier.austina@gmail.com>
>
>> Hello,
>> I am a newbie of boost and I want to use it. I would like to serialize a
>> list. The list is defined with the following data type:
>>
>> typedef struct person {
>> char *name;
>> char *first_name;
>> struct person *next;
>> } person;
>>
>> person *list_person;
>>
>
> I'd suggest reorganizing your struct into struct person { std::string
> first_name; } and useing std::list<person> list. Then serializing and > other operations would probably be trivial.
Shalom
 
Another option would be an intrusive list --
http://www.boost.org/doc/libs/1_52_0/doc/html/intrusive.html
.
The serialization library in Boost doesn't provide support
for intrusive containers, but the C++ Middleware Writer --
http://webEbenezer.net
has support for intrusive list and rbtree.
 
If you use std::list, the C++ Middleware Writer has
some advantages --
http://webEbenezer.net/comparison.html
over the serialization library in Boost.  (There are
serialization and deserialization tests with std::list
there.)
 
--
Brian
Ebenezer Enterprises  -- so far G-d has helped us.
http://webEbenezer.net
(651) 251-9384