[Serialization] Std::string's pointer can't be serialized.

Hello.
I recently try to use boost.Serialization and it works fine until i
try to serialize a string pointer. With a string pointer, the compiler
(gcc 4.4.1) can't resolve a type and print the error: "error: ‘struct
std::basic_string ’ has no member named ‘serialize’" Here a schoolish example that fails to compile:
______________________________________________________
#include ]’:
/usr/include/boost/serialization/serialization.hpp:74: instantiated
from ‘void boost::serialization::serialize(Archive&, T&, unsigned int)
[with Archive = boost::archive::text_oarchive, T =
std::basic_string I also tried this one codepad. you could see the result here:
http://codepad.org/QnR0mMVs
I don't know if it's an issue or if i'm using serialize the wrong way
but i would need to serialize strings pointers.
Best regards
Mocramis

Moch Ramis wrote:
Hello.
I recently try to use boost.Serialization and it works fine until i try to serialize a string pointer. With a string pointer, the compiler (gcc 4.4.1) can't resolve a type and print the error: "error: struct std::basic_string
has no member named serialize"
try #include
participants (2)
-
Moch Ramis
-
Robert Ramey