12 May
2013
12 May
'13
11:11 a.m.
On 12/05/13 11:26, Vicente J. Botet Escriba wrote:
Hi,
I would like to add the definition of BOOST_FORCEINLINE for clang when __has_attribute(always_inline)
// BOOST_FORCEINLINE ---------------------------------------------// #if !defined(BOOST_FORCEINLINE) # if defined(_MSC_VER) # define BOOST_FORCEINLINE __forceinline +# elif defined(__clang__) +# if __has_attribute(always_inline) +# define BOOST_FORCEINLINE inline __attribute__((always_inline)) +# endif # elif defined(__GNUC__) && __GNUC__ > 3 # define BOOST_FORCEINLINE inline __attribute__ ((always_inline)) # else
Could I commit it?
What purpose does it serve? if defined(__GNUC__) && __GNUC__ > 3 is already true with clang.