From f4341ad1b8bf874d3a27d08b0d93730dc5598852 Mon Sep 17 00:00:00 2001 From: vjacquet Date: Mon, 27 Jun 2016 00:19:32 +0200 Subject: [PATCH] Added noexcept to what Added noexcept specification required on what since c++ 11. --- include/gsl_assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl_assert.h b/include/gsl_assert.h index 17a2a75..7b5de77 100644 --- a/include/gsl_assert.h +++ b/include/gsl_assert.h @@ -47,7 +47,7 @@ namespace gsl { struct fail_fast { - virtual char const* what() const = 0; + virtual char const* what() const noexcept = 0; }; namespace details @@ -56,7 +56,7 @@ namespace details struct contract_violation : public E, public fail_fast { explicit contract_violation(char const* const message) : E(message) {} - virtual char const* what() const override + virtual char const* what() const noexcept override { return E::what(); }