diff options
author | Stefan Laner <laner@itestra.de> | 2013-10-21 12:49:59 +0200 |
---|---|---|
committer | Stefan Laner <laner@itestra.de> | 2013-10-21 12:49:59 +0200 |
commit | 0d220c98c4b8692f3ad06681e9644368941c9ee6 (patch) | |
tree | f844d181d09c359576a77c6a57e62c1039b46e92 | |
parent | ed1866179bdfdfca2dbb2631efa17e453772edf2 (diff) | |
download | genivi-common-api-runtime-0d220c98c4b8692f3ad06681e9644368941c9ee6.tar.gz |
Always throw exception in SerializableVariant on windows
-rwxr-xr-x | src/CommonAPI/SerializableVariant.hpp | 2 |
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 |