mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Added noexcept to what
Added noexcept specification required on what since c++ 11.
This commit is contained in:
parent
28ec4ea699
commit
f4341ad1b8
@ -47,7 +47,7 @@ namespace gsl
|
||||
{
|
||||
struct fail_fast
|
||||
{
|
||||
virtual char const* what() const = 0;
|
||||
virtual char const* what() const noexcept = 0;
|
||||
};
|
||||
|
||||
namespace details
|
||||
@ -56,7 +56,7 @@ namespace details
|
||||
struct contract_violation : public E, public fail_fast
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user