diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-11 09:13:12 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-11 09:13:12 +0000 |
commit | 0efd9386568600205373df85341b3c14fe24accf (patch) | |
tree | fccd8d4b77a0fcdcf0f94c2bd91fd67a3b3edf72 /factory.h | |
parent | 813d784ea5a05ba219879a3a42a6c159124c9d28 (diff) | |
download | cryptopp-git-0efd9386568600205373df85341b3c14fe24accf.tar.gz |
improved method of disable inlining, fix compile on NetBSD
Diffstat (limited to 'factory.h')
-rw-r--r-- | factory.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -65,8 +65,7 @@ public: return factory->CreateObject(); } - // VC60 workaround: use "..." to prevent this function from being inlined - static ObjectFactoryRegistry<AbstractClass, instance> & Registry(...); + CRYPTOPP_NOINLINE static ObjectFactoryRegistry<AbstractClass, instance> & Registry(CRYPTOPP_NOINLINE_DOTDOTDOT); private: // use void * instead of ObjectFactory<AbstractClass> * to save code size @@ -75,7 +74,7 @@ private: }; template <class AbstractClass, int instance> -ObjectFactoryRegistry<AbstractClass, instance> & ObjectFactoryRegistry<AbstractClass, instance>::Registry(...) +ObjectFactoryRegistry<AbstractClass, instance> & ObjectFactoryRegistry<AbstractClass, instance>::Registry(CRYPTOPP_NOINLINE_DOTDOTDOT) { static ObjectFactoryRegistry<AbstractClass, instance> s_registry; return s_registry; |