mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
add what to narrowing_error
This commit is contained in:
parent
21b69e5cce
commit
e7e3bf4f5f
@ -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