This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Let C++ always use inline functions (patch)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]