aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cxx/include/aesnixx/error.hpp4
1 files changed, 4 insertions, 0 deletions
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);