add what to narrowing_error

This commit is contained in:
Jordan Maples 2020-09-14 15:50:46 -07:00
parent 21b69e5cce
commit e7e3bf4f5f

View File

@ -22,6 +22,10 @@ namespace gsl
{ {
struct narrowing_error : public std::exception 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 // narrow() : a checked version of narrow_cast() that throws if the cast changed the value