Boost logo

Boost Users :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2008-07-28 10:37:49


One solution is to specialize the template for certain archive types,
and use a different archive for "save data" and "save game"

Matthias

On Jul 28, 2008, at 6:47 AM, John Krajewski wrote:

> Newbie question for the boost serialization library.. In my app I
> want to
> have two seperate serialization modes: One when I'm saving all the
> data,
> and one when I'm creating a 'save game'. The two will be an
> overlapping set
> of parameters.
>
> Is there a good way to do this with the serialization library? Some
> way to
> specify seperate functions to call. I'm about to add a global flag
> that I
> can check in my single serialize function, and then check that to
> determine
> if I'm saving data or a save game, but this is a bit of a hack and I'd
> rather have a seperate function.
>
> Many thanks
> John Krajewski
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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