From 1012e664efa9dfca3d7ebacb0058a2245a9bbf62 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 9 Jun 2006 06:28:22 +0000 Subject: improve Integer initialization --- integer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'integer.h') diff --git a/integer.h b/integer.h index 7bb051a5..a0bd85d8 100644 --- a/integer.h +++ b/integer.h @@ -67,12 +67,17 @@ NAMESPACE_BEGIN(CryptoPP) void CRYPTOPP_DLL CRYPTOPP_API DisableSSE2(); +struct InitializeInteger // used to initialize static variables +{ + InitializeInteger(); +}; + //! multiple precision integer and basic arithmetics /*! This class can represent positive and negative integers with absolute value less than (256**sizeof(word)) ** (256**sizeof(int)). \nosubgrouping */ -class CRYPTOPP_DLL Integer : public ASN1Object +class CRYPTOPP_DLL Integer : private InitializeInteger, public ASN1Object { public: //! \name ENUMS, EXCEPTIONS, and TYPEDEFS -- cgit v1.2.1