Merge pull request #928 from JordanMaples/narrowing_error-add-what

add what to narrowing_error
This commit is contained in:
Jordan Maples [MSFT]
2020-09-14 16:51:38 -07:00
committed by GitHub

View File

@@ -22,6 +22,10 @@ namespace gsl
{
struct narrowing_error : public std::exception
{
const char* what() const noexcept override
{
return "narrowing_error";
}
};
// narrow() : a checked version of narrow_cast() that throws if the cast changed the value