Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] writing private variables
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-07-16 14:04:29

Sean Farrow wrote:
> Hi:
> Is there a way to tell the serialization library to write private
> members. The members do have functions to get/set there values, but
> as far I know the serialization subsystem doesn't call these.
> Cheers
> Sean.

You can make the serialization functions as member functions. That's likely
the most common way.

You could also include a friend declaration in your class.

Robert Ramey

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at