14 Jul
2006
14 Jul
'06
1:59 p.m.
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