forked from microsoft/GSL
Merge pull request #928 from JordanMaples/narrowing_error-add-what
add what to narrowing_error
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user