Added noexcept to what

Added noexcept specification required on what since c++ 11.
This commit is contained in:
vjacquet 2016-06-27 00:19:32 +02:00
parent 28ec4ea699
commit f4341ad1b8

View File

@ -47,7 +47,7 @@ namespace gsl
{ {
struct fail_fast struct fail_fast
{ {
virtual char const* what() const = 0; virtual char const* what() const noexcept = 0;
}; };
namespace details namespace details
@ -56,7 +56,7 @@ namespace details
struct contract_violation : public E, public fail_fast struct contract_violation : public E, public fail_fast
{ {
explicit contract_violation(char const* const message) : E(message) {} explicit contract_violation(char const* const message) : E(message) {}
virtual char const* what() const override virtual char const* what() const noexcept override
{ {
return E::what(); return E::what();
} }