mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge pull request #928 from JordanMaples/narrowing_error-add-what
add what to narrowing_error
This commit is contained in:
commit
bd803cc7cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user