summaryrefslogtreecommitdiff
path: root/factory.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-12-11 09:13:12 +0000
committerweidai <weidai11@users.noreply.github.com>2006-12-11 09:13:12 +0000
commit0efd9386568600205373df85341b3c14fe24accf (patch)
treefccd8d4b77a0fcdcf0f94c2bd91fd67a3b3edf72 /factory.h
parent813d784ea5a05ba219879a3a42a6c159124c9d28 (diff)
downloadcryptopp-git-0efd9386568600205373df85341b3c14fe24accf.tar.gz
improved method of disable inlining, fix compile on NetBSD
Diffstat (limited to 'factory.h')
-rw-r--r--factory.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/factory.h b/factory.h
index 67c97688..50e4313a 100644
--- a/factory.h
+++ b/factory.h
@@ -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;