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: Christopher Samuel (samuel_at_[hidden])
Date: 2012-05-09 23:54:50


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/05/12 07:40, Jeff Squyres wrote:

> Huh -- really? I always thought that the C++ language itself
> included the keyword "inline".

I asked via Twitter and got these responses..

# Inline was part of C++98 - the first c++ standard, and
# the inline kwd is in the cfront 1.0 ('86) source. So
# functionally, yes.

...and...

# This may be a different question than "have all C++
# compilers always accepted inline?"

I note that autoconf has an inline test for C:

http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/C-Compiler.html

But not for C++:

http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/C_002b_002b-Compiler.html

So perhaps the fact that they've never needed to implement
such a test is in itself a good guide ?

cheers,
Chris
- --
    Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+rPAoACgkQO2KABBYQAh+fqwCfbsCOjeK5y+WEZnWQ1e+pQmQg
DhQAoJdN6S7IJpUZ51IlXbE0QJOI1jjI
=dWPv
-----END PGP SIGNATURE-----