From 89271b89c10cf2e3d8987d66dc2814b0d5e6c762 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Mon, 24 Feb 2020 13:06:01 -0800 Subject: [PATCH] fix apple clang forward declaration --- include/gsl/span | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index b668e71..f11ea6a 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -68,11 +68,11 @@ namespace std // array is only used for a few constructors, so pulling the entire header is unnecessary for span. // The end user's logic will pull in the actual definition of array if they need it. template -#if defined(_MSC_VER) || (defined(__GNUC__) && !defined(__clang__)) -class array; -#else +#if defined(__clang__) || defined(__APPLE__) struct array; -#endif // defined(_MSC_VER) || (defined(__GNUC__) && !defined(__clang__)) +#else +class array; +#endif // defined(__clang__) || defined(__APPLE__) } namespace gsl