X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Thu, 29 Apr 1999 16:05:54 -0500 To: Jeremy Siek From: William Gropp Subject: Re: C++ MPI constants Cc: mpi-bind@XXXXXXXXXXX,mpi-core@XXXXXXXXXXX,mpi-io@XXXXXXXXXXX,In-Reply-To: <199904291428.JAA15837@XXXXXXXXXXXXXXXXXXX> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-mpi-core@XXXXXXXXXXX Precedence: bulk X-UIDL: 26795a8bd7e17273a5b47b984ab92f1b At 09:28 AM 4/29/99 -0500, jeremy siek wrote: > >Michael Holzheu has brought to our attention a name conflict between >some macros in stdio.h (SEEK_SET, etc.) and the C++ MPI constants. > >He proposes two solutions. >1. Change all the C++ constants to lowercase, which would be more in > conformance with the style of the C++ standard libraries. > >2. Change just the offending constants by adding a "CPP_" prefix. > >Andrew Lumsdaine and I suggest that alternative #1 is the better choice. That's because #2 is so awful. Here's a more reasonable alternative 3. Change just the offending constants by adding an "MPI_" prefix. Of course, this makes the constants the same as the C versions, which doesn't seem so bad. That really makes the choices these: 1. Change to lowercase. 4. Remove them and use the respective C versions (MPI_SEEK_SET etc.) I'd prefer 4 slightly over 1. Bill