Why don't you trust your compiler to decide when inlining a function is a good choice for an optimization? :) -----Original Message----- From: Artem Alimarine [mailto:artem@emulatorsinternational.com] Sent: Friday, July 14, 2006 6:59 AM To: boost-users@lists.boost.org Subject: [Boost-users] force inline 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 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users