diff options
author | Jack Lloyd <[email protected]> | 2017-09-22 20:58:17 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-22 20:58:17 -0400 |
commit | 736cb8b967a5c242907dc6999a460bdc6a2b4143 (patch) | |
tree | 0633d7a42a17b3ce6e88607f10c44ed8ba7ef41f /src/lib/entropy | |
parent | 02c543e9a00ad8a61bbe7345d00790b4ea65d86c (diff) |
Attempt to make MSVC happy
Diffstat (limited to 'src/lib/entropy')
-rw-r--r-- | src/lib/entropy/entropy_src.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<std::string>& 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<std::unique_ptr<Entropy_Source>> m_srcs; }; |