This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: Let C++ always use inline functions (patch)
- From: "Brian Gough" <bjg at network-theory dot co dot uk>
- To: Jochen Küpper <jochen at fhi-berlin dot mpg dot de>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Mon, 12 Jun 2006 15:59:28 +0100
- Subject: Re: Let C++ always use inline functions (patch)
- References: <9ever89ffd.fsf@doze.jochen-kuepper.de>
Jochen Küpper writes:
> It replaces the old test for "HAVE_INLINE" by a test for that macro
> /or/ C++:
> ,----
> | -#ifdef HAVE_INLINE
> | +#if (defined HAVE_INLINE) || (defined __cplusplus)
> `----
>
> This is ok, as a C++ compiler is required by the standard to handle
> "inline".
Good point, I hadn't really thought about that. A few questions:
- what does the C++ standard say about "extern inline" compared with "inline"
- is it affected by the extern "C" { .. } around these definitions
- have you tried this on any other compilers
--
Brian Gough
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/