From 1a94e7791064b05f931a61c1d665503b96b79868 Mon Sep 17 00:00:00 2001 From: Gary Furnish Date: Tue, 6 Dec 2016 17:40:09 -0700 Subject: [PATCH] Fix preprocessor error. --- gsl/gsl_util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsl/gsl_util b/gsl/gsl_util index 889414a..88681e8 100644 --- a/gsl/gsl_util +++ b/gsl/gsl_util @@ -93,7 +93,7 @@ inline final_act finally(F&& f) noexcept } // narrow_cast(): a searchable way to do narrowing casts of values -#if _MSC_VER <= 1800 +#if defined(_MSC_VER) && _MSC_VER <= 1800 template inline constexpr T narrow_cast(U u) noexcept {