From c2f41a5b278df2837f4cc5617df07248a048d93c Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 2 Mar 2022 21:24:34 +0100 Subject: refactor: add virtual destructors to interfaces This is required by clang++ for some reason... --- src/interfaces/randomization.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/interfaces/randomization.hpp') diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp index 78456a2..9eeec0a 100644 --- a/src/interfaces/randomization.hpp +++ b/src/interfaces/randomization.hpp @@ -6,6 +6,8 @@ class ISeedGenerator { public: + virtual ~ISeedGenerator() = default; + [[nodiscard]] virtual unsigned int random_seed() const = 0; }; @@ -17,6 +19,8 @@ using ISeedGeneratorFactory = std::function()>; class IRandomNumberGenerator { public: + virtual ~IRandomNumberGenerator() = default; + /** * Returns a number in the range of a to b. * -- cgit v1.2.3-18-g5258