
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.serializ... So, AFAICT, it doesn't require actual POD-ness. -- Dave Abrahams BoostPro Computing http://www.boostpro.com