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 {