Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [PATCH] Use plain "inline" in C++
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2012-05-09 17:32:29

Jeff Squyres, le Wed 09 May 2012 22:59:43 +0200, a écrit :
> Samuel -- does this look right to you? If so, I can apply to 1.3, 1.4, and trunk.
> +/* Note that if we're compiling C++, then just use the "inline"
> + keyword, since it's part of C++ */
> +#if defined(c_plusplus) || defined(__cplusplus)
> +# define __hwloc_inline inline

Well, I don't know which version of the C++ standard includes the inline
keyword. We need to make sure that other compilers recognize it as such
in all their usual standard layers.