From 4b783316693c8ef2e36a1d97f3dff06c9aea8f79 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 2 Oct 2017 23:45:00 -0400 Subject: Use class for exception types --- src/lib/math/bigint/bigint.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib/math') 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 -- cgit v1.2.3