From f67b8323fe6ef393f896e67812e6bf5b3cbe3a51 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 27 Nov 2017 23:00:15 +0000 Subject: Gem ebc50987f9794b71fc512d52b46e5c78d6e9218f osx/x86_64 built 'noexcept:ebc50987f9794b71fc512d52b46e5c78d6e9218f' for osx/x86_64 --- Gem/develop/include/Gem/Utils/any.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Gem/develop/include/Gem/Utils/any.h') 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; -- cgit v1.2.1