Boost logo

Boost Users :

Subject: Re: [Boost-users] Serilization: Pointers to primitives
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-09-09 17:55:06


Jonathan Klein wrote:
> Hi,
> i'm tring to serialize a std::map<string, int*> but get strange
> compiler errors.

This comes up all the time. You can't serialize a pointer to
a prmiitive. Wrap the primitive in a class and serialize that.

Also see BOOST_SERIALIZATION_STRONG_TYPEDEF

> Also i tried to serialize a **class, which also
> failed.

This is not supported. There is an enhancement request
to do so though.

Robert Ramey


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