diff options
author | Jack Lloyd <[email protected]> | 2017-10-19 15:12:35 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-19 15:12:35 -0400 |
commit | 843a982c3a019e18975aef0277af44a3731f8caa (patch) | |
tree | d30199bc21a76eecb558a39027d61d3a59cbe91e /src/lib/utils/exceptn.h | |
parent | 9be977646f9373ff596e8fdd5ebd73f3281cde49 (diff) |
Another attempt at silencing MSVC warning
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r-- | src/lib/utils/exceptn.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h index 89b047e1a..4349290e9 100644 --- a/src/lib/utils/exceptn.h +++ b/src/lib/utils/exceptn.h @@ -117,8 +117,8 @@ class BOTAN_PUBLIC_API(2,0) PRNG_Unseeded final : public Invalid_State class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State { public: - explicit Policy_Violation(const std::string& err); - ~Policy_Violation() { /* avoid strange MSVC warning */ } + explicit Policy_Violation(const std::string& err) : + Invalid_State("Policy violation: " + err) {} }; /** |