summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Laner <laner@itestra.de>2013-10-21 12:49:59 +0200
committerStefan Laner <laner@itestra.de>2013-10-21 12:49:59 +0200
commit0d220c98c4b8692f3ad06681e9644368941c9ee6 (patch)
treef844d181d09c359576a77c6a57e62c1039b46e92
parented1866179bdfdfca2dbb2631efa17e453772edf2 (diff)
downloadgenivi-common-api-runtime-0d220c98c4b8692f3ad06681e9644368941c9ee6.tar.gz
Always throw exception in SerializableVariant on windows
-rwxr-xr-xsrc/CommonAPI/SerializableVariant.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CommonAPI/SerializableVariant.hpp b/src/CommonAPI/SerializableVariant.hpp
index 566f04a..21b4d77 100755
--- a/src/CommonAPI/SerializableVariant.hpp
+++ b/src/CommonAPI/SerializableVariant.hpp
@@ -461,7 +461,7 @@ const _Type & Variant<_Types...>::get() const {
if (cType == valueType_) {
return *(reinterpret_cast<const _Type *>(&valueStorage_));
} else {
-#ifdef __EXCEPTIONS
+#if defined(__EXCEPTIONS) || defined(WIN32)
std::bad_cast toThrow;
throw toThrow;
#else