Re: [Boost-users] [Serialization] Std::string's pointer can't beserialized.

[Snip program that already includes
try #include
Robert Ramey
Really? I thought that since std::string was a primitive type it simply couldn't be serialized through a pointer? Pete

Pete Bartlett wrote:
[Snip program that already includes
] try #include
Robert Ramey Really? I thought that since std::string was a primitive type it simply couldn't be serialized through a pointer?
In any case, what you likely want to do is derive from std::string and serialize that. In this way you and assign you're own serialization traits and not effect any other parts of the program.
Pete

2010/6/30 Robert Ramey
try #include
The code i gave in example ever include it. we can't do a simpler code.
2010/6/30 Pete Bartlett
Really? I thought that since std::string was a primitive type it simply couldn't be serialized through a pointer?
I've never heard about it ... does the documentation says something like that ? And why would a string header be provided if strings pointers can't be serialized ?
participants (3)
-
Moch Ramis
-
Pete Bartlett
-
Robert Ramey