From 7a7d025ffa99d8602ace633793bc909ce47a8dd7 Mon Sep 17 00:00:00 2001 From: Alex Green Date: Mon, 14 Jan 2019 19:44:45 -0500 Subject: [PATCH] Make CheckRange constexpr (#754) (#755) --- include/gsl/span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/span b/include/gsl/span index f0f7f1f..fae1522 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -544,7 +544,7 @@ public: #endif // _MSC_VER private: - static bool CheckRange(index_type idx, index_type size) noexcept + static constexpr bool CheckRange(index_type idx, index_type size) noexcept { // Optimization: //