Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Maples <jomaples@microsoft.com>2020-09-15 01:50:46 +0300
committerJordan Maples <jomaples@microsoft.com>2020-09-15 01:50:46 +0300
commite7e3bf4f5f3509148d030d3af31b2e4555632e7f (patch)
treea804e2dcaae2a4d045c385eeadcdde7f093569e3 /include/gsl
parent21b69e5ccedb036ea3c0c6275519cbe51a8dbc03 (diff)
add what to narrowing_error
Diffstat (limited to 'include/gsl')
-rw-r--r--include/gsl/gsl_narrow4
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