diff options
-rw-r--r-- | include/gsl/gsl_narrow | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gsl/gsl_narrow b/include/gsl/gsl_narrow index 7027b58..cec25a1 100644 --- a/include/gsl/gsl_narrow +++ b/include/gsl/gsl_narrow @@ -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
|