$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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