From 52a273147d2693437b6cfb2a1cf5d89d37d32108 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 22 Jul 2015 18:47:56 +0300 Subject: cxx: add a compiler workaround --- cxx/include/aesnixx/error.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cxx') diff --git a/cxx/include/aesnixx/error.hpp b/cxx/include/aesnixx/error.hpp index 013e2ef..5366c0b 100644 --- a/cxx/include/aesnixx/error.hpp +++ b/cxx/include/aesnixx/error.hpp @@ -80,7 +80,11 @@ namespace aesni aesni_success(get()); } + #if defined(_MSC_VER) && _MSC_VER < 1900 ~ErrorDetailsThrowsInDestructor() + #else + ~ErrorDetailsThrowsInDestructor() noexcept(false) + #endif { if (aesni_is_error(aesni_get_error_code(get()))) throw Error(m_impl); -- cgit v1.2.3