|
Boost Users : |
Subject: [Boost-users] mpi/serialization: string serialization and const char*
From: Hicham Mouline (hicham_at_[hidden])
Date: 2011-01-02 11:47:45
hello,
Including
I mpi::broadcast an object. Its serialization method is split into a save()
and a load(). In the save(), I send:
ar << "fixed_params";
where ar is a boost::mpi::packed_iarchive.
At reception, the load() function :
std::string paramstype;
ar >> paramstype;
if (paramstype=="fixed_params") /// this fails because the count of
characters if 12 for 1 side and 13 for the other. The null character is
there.
Should this work?
regards,
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