diff options
author | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2017-11-27 23:00:15 +0000 |
---|---|---|
committer | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2017-11-27 23:00:15 +0000 |
commit | f67b8323fe6ef393f896e67812e6bf5b3cbe3a51 (patch) | |
tree | 793c0b81d232213de990ee40c35338e148ff8fec /Gem/develop/include/Gem/Utils/any.h | |
parent | 3b710d428c9dba58e7bb538af234da8d71d2c269 (diff) |
Gem ebc50987f9794b71fc512d52b46e5c78d6e9218f osx/x86_64
built 'noexcept:ebc50987f9794b71fc512d52b46e5c78d6e9218f' for osx/x86_64
Diffstat (limited to 'Gem/develop/include/Gem/Utils/any.h')
-rw-r--r-- | Gem/develop/include/Gem/Utils/any.h | 13 |
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; |