MPI Forum Meetings logo

MPI Forum: mpi-22 Mailing List Archives

all MPI Forum: mpi-22 mailing list

Subject: Re: [Mpi-22] Call for MPI 2.2 agenda items
From: Dries Kimpe (Dries.Kimpe_at_[hidden])
Date: 2008-05-05 18:23:06


* Rajeev Thakur <thakur_at_[hidden]> [2008-05-05 15:36:01]:

> * MPI_CHAR, MPI::CHAR should be signed char or char?

In C and C++, char, signed char and unsigned char are all distinct
types.

(And in C++, wchar_t is yet another type; In C it is a typedef
and thus not a new type but an alias)

Char can either be signed or unsigned and this is platform/compiler
dependent. So MPI_CHAR and MPI::CHAR should be whatever the
compiler/platform thinks and cannot be fixed in the standard to
be signed or unsigned.

   Dries



  • application/pgp-signature attachment: stored