From fc55c1a5dea1b96db0fd36b9c854000ad4137bf1 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 11 Dec 2006 09:13:12 +0000 Subject: improved method of disable inlining, fix compile on NetBSD git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@250 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- misc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc.h') diff --git a/misc.h b/misc.h index 0b166ec..35462b8 100644 --- a/misc.h +++ b/misc.h @@ -77,15 +77,15 @@ class Singleton public: Singleton(F objectFactory = F()) : m_objectFactory(objectFactory) {} - // VC60 workaround: use "..." to prevent this function from being inlined - const T & Ref(...) const; + // prevent this function from being inlined + CRYPTOPP_NOINLINE const T & Ref(CRYPTOPP_NOINLINE_DOTDOTDOT) const; private: F m_objectFactory; }; template -const T & Singleton::Ref(...) const +const T & Singleton::Ref(CRYPTOPP_NOINLINE_DOTDOTDOT) const { static simple_ptr s_pObject; static char s_objectState = 0; -- cgit v1.2.1