Boost logo

Boost :

Subject: Re: [boost] [mpi] non-char strings
From: Matthias Troyer (troyer_at_[hidden])
Date: 2009-09-06 16:11:27

On 2 Sep 2009, at 14:40, Isidor Zeuner wrote:

> The last two checkouts I installed both failed passing strings through
> boost::mpi communication methods when the element type was not
> char. So maybe someone besides me will have use for the attached patch
> which makes it work again. I assume this way of passing strings
> isn't here to stay anyway since boost::serialization also handles
> strings.

Unfortunately Boost.Serialization treats strings as "fundamental
types", meaning every archive needs to implement serialization of
strings. Your patch needs to replace MPI_CHAR by the appropriate MPI
type. I'll apply the correct patch.


Boost list run by bdawes at, gregod at, cpdaniel at, john at