aboutsummaryrefslogtreecommitdiff
path: root/Gem/develop/include/Gem/Utils/any.h
diff options
context:
space:
mode:
Diffstat (limited to 'Gem/develop/include/Gem/Utils/any.h')
-rw-r--r--Gem/develop/include/Gem/Utils/any.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/Gem/develop/include/Gem/Utils/any.h b/Gem/develop/include/Gem/Utils/any.h
index dff11bb..331a797 100644
--- a/Gem/develop/include/Gem/Utils/any.h
+++ b/Gem/develop/include/Gem/Utils/any.h
@@ -34,9 +34,18 @@ namespace gem
bad_any_cast(const std::type_info& src, const std::type_info& dest)
: result(std::string("bad cast (")+src.name() + "->" + dest.name()+")")
{ }
- virtual ~bad_any_cast(void) throw()
+ virtual ~bad_any_cast(void)
+#if __cplusplus <= 199711L
+ throw()
+#endif
{ }
- virtual const char* what(void) const throw() {
+ virtual const char* what(void) const
+#if __cplusplus > 199711L
+ noexcept
+#else
+ throw()
+#endif
+ {
return result.c_str();
}
const std::string result;