From b6c57e2403d3ea9bd0a1c07623b76151ebe5d036 Mon Sep 17 00:00:00 2001 From: bowie7070 Date: Thu, 29 Oct 2020 09:38:32 +1100 Subject: [PATCH] Include gsl_narrow from gsl and fix comment. (#939) narrow() is now in gsl_narrow rather than gsl_util. Include gsl_narrow when exceptions are enabled. Ensures that #include includes entire library as advertised in the documentation. Co-authored-by: Bowie Owens --- include/gsl/gsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/gsl/gsl b/include/gsl/gsl index 55862eb..4ce0eb9 100644 --- a/include/gsl/gsl +++ b/include/gsl/gsl @@ -20,10 +20,14 @@ #include // copy #include // Ensures/Expects #include // byte -#include // finally()/narrow()/narrow_cast()... +#include // finally()/narrow_cast()... #include // multi_span, strided_span... #include // owner, not_null #include // span #include // zstring, string_span, zstring_builder... +#ifdef __cpp_exceptions +#include // narrow() +#endif + #endif // GSL_GSL_H