diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-06-09 06:28:22 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-06-09 06:28:22 +0000 |
commit | 1012e664efa9dfca3d7ebacb0058a2245a9bbf62 (patch) | |
tree | ae7f4e2f59555b8957c8e55e10c4caa87d5979d2 /integer.h | |
parent | e5f8b8851aae6884fe25b5418de7e54bf10e709f (diff) | |
download | cryptopp-git-1012e664efa9dfca3d7ebacb0058a2245a9bbf62.tar.gz |
improve Integer initialization
Diffstat (limited to 'integer.h')
-rw-r--r-- | integer.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |