diff options
author | Jack Lloyd <[email protected]> | 2017-10-02 23:45:00 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-02 23:45:00 -0400 |
commit | 4b783316693c8ef2e36a1d97f3dff06c9aea8f79 (patch) | |
tree | e793e123ea5d0c1085a028dfb7aa60b11e338701 /src/lib/math | |
parent | f9090ec68986d297fd4cfd97bf75521df8f38aff (diff) |
Use class for exception types
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 2dabd43a5..e6015b7b3 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -38,8 +38,11 @@ class BOTAN_PUBLIC_API(2,0) BigInt final /** * DivideByZero Exception */ - struct BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception - { DivideByZero() : Exception("BigInt divide by zero") {} }; + class BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception + { + public: + DivideByZero() : Exception("BigInt divide by zero") {} + }; /** * Create empty BigInt |