From: Artem Alimarine (artem_at_[hidden])
Date: 2006-07-14 09:59:09


Hi all,

Is there a macro in boost for something like MSVC __forceinline.
Currently I have in the project:

#if defined __GNUC__
     #define FORCE_INLINE __attribute__((always_inline))
     #define NO_INLINE __attribute__((noinline))
#elif defined _MSC_VER
     #define FORCE_INLINE __forceinline
     #define NO_INLINE __declspec(noinline)
#else
     //#error "no inlines"
     #define FORCE_INLINE inline
     #define NO_INLINE
#endif

I am wondering whether I can get rid of it and use boost for it?

Artem