2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-01-19 04:22:10 +00:00

Merge pull request #165 from sdebionne/fix-msmpi-no-cxxbool

Fix MSMPI missing MPI_CXX_BOOL
This commit is contained in:
Alain Miniussi
2025-05-05 15:15:02 +02:00
committed by GitHub

View File

@@ -213,8 +213,13 @@ BOOST_MPI_DATATYPE(packed, MPI_PACKED, builtin);
BOOST_MPI_DATATYPE(char, MPI_CHAR, builtin);
/// INTERNAL ONLY
#if !defined(MSMPI_VER)
/// We need to pick a boolean type, MPI_CXX_BOOL seems appropriate
BOOST_MPI_DATATYPE(bool, MPI_CXX_BOOL, logical);
#else
/// but is not available on MSMPI
BOOST_MPI_DATATYPE(bool, MPI_C_BOOL, logical);
#endif
/// INTERNAL ONLY
BOOST_MPI_DATATYPE(short, MPI_SHORT, integer);