From 736cb8b967a5c242907dc6999a460bdc6a2b4143 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 22 Sep 2017 20:58:17 -0400 Subject: Attempt to make MSVC happy --- src/lib/entropy/entropy_src.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/lib/entropy') diff --git a/src/lib/entropy/entropy_src.h b/src/lib/entropy/entropy_src.h index 33fdbc3e6..babdd20dd 100644 --- a/src/lib/entropy/entropy_src.h +++ b/src/lib/entropy/entropy_src.h @@ -45,7 +45,14 @@ class BOTAN_PUBLIC_API(2,0) Entropy_Source */ virtual size_t poll(RandomNumberGenerator& rng) = 0; + Entropy_Source(const Entropy_Source& other) = delete; + Entropy_Source(Entropy_Source&& other) = delete; + Entropy_Source& operator=(const Entropy_Source& other) = delete; + virtual ~Entropy_Source() {} + + protected: + Entropy_Source() {} }; class BOTAN_PUBLIC_API(2,0) Entropy_Sources final @@ -68,6 +75,11 @@ class BOTAN_PUBLIC_API(2,0) Entropy_Sources final Entropy_Sources() {} explicit Entropy_Sources(const std::vector& sources); + + Entropy_Sources(const Entropy_Sources& other) = delete; + Entropy_Sources(Entropy_Sources&& other) = delete; + Entropy_Sources& operator=(const Entropy_Sources& other) = delete; + private: std::vector> m_srcs; }; -- cgit v1.2.3