|
Boost Users : |
Subject: Re: [Boost-users] Boost.Serialization: Error on Calling Class Method during serialization process
From: Alex Perry (Alex.Perry_at_[hidden])
Date: 2011-08-24 09:24:20
Hazrat Pradipta Ranjali <mrdipta_at_[hidden]> wrote :-
> I have the following problem when I try to call method in "TestSerialize"
> class during serialization process.
>
> Here is my code:
>
> class TestSerialize
> {
> public:
> std::string GetVal() { return Val + "abc"; }
> void SetVal(std::string tVal) { Val = tVal.substr(0, 2); }
GetVal() needs to be declared as const
HTH
Alex
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