Boost logo

Boost :

Subject: Re: [boost] [UUID] PODness Revisited
From: David Abrahams (dave_at_[hidden])
Date: 2008-12-25 11:14:25


on Wed Dec 24 2008, "Vladimir Batov" <batov-AT-people.net.au> wrote:

>> Unfortunately I think any nontrivial constructor at all makes a class a
>> non-POD. So you may have to accept the uninitialized state in order to
>> interact well with MPI. You might consider whether you need a low-level
>> representation class as well as a higher-level wrapper with stronger
>> invariants.
>
> I am very unsure of that POD... and the "uninitialized
> state"... Yuk. Are we sure it is that need to "interact well with
> MPI"? I am reading about MPI I see that for "normal" classes it
> deploys Boost.Serialization.

The actual keys are described here:
http://www.boost.org/doc/libs/1_37_0/doc/html/boost/mpi/is_mpi_datatype.html
and here:
http://www.boost.org/doc/libs/1_37_0/doc/html/mpi/tutorial.html#mpi.serialization_optimizations

So, AFAICT, it doesn't require actual POD-ness.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk