[Boost-bugs] [Boost C++ Libraries] #2151: Cannot build MPI datatypes for enumeration types

Subject: [Boost-bugs] [Boost C++ Libraries] #2151: Cannot build MPI datatypes for enumeration types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-28 20:07:41


#2151: Cannot build MPI datatypes for enumeration types
----------------------------------+-----------------------------------------
 Reporter: dgregor | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: mpi
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 When building MPI datatypes for enumeration types for which
 is_mpi_datatype is true, Boost.MPI ends up building a broken MPI datatype
 that causes segmentation faults. The problem seems to be that
 load_enum_type and save_enum_type (in boost/archive/iserializer.hpp and
 boost/archive/oserializer.hpp, respectively) actually perform the
 serialization call on an "int" rather than on the enum itself, causing the
 mpi_datatype_oarchive to receive an address on the stack.

 Full test case is attached.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2151>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC