24 Aug
2011
24 Aug
'11
1:24 p.m.
Hazrat Pradipta Ranjali
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