Commit cbf99053 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

define bad_any_cast::what() as 'noexcept'

required, since the parent class bad_cast() does it as well...

noexcept is only available since C++-11
parent ead14be6
......@@ -36,7 +36,11 @@ namespace gem
{ }
virtual ~bad_any_cast(void)
{ }
virtual const char* what(void) const {
virtual const char* what(void) const
#if __cplusplus > 199711L
noexcept
#endif
{
return result.c_str();
}
const std::string result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment