From 4a6a7a095ddd748064b6036d9bb9e73a0bdc5e40 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:09:29 -0800 Subject: [PATCH] add back array header, will remove in separate pr --- include/gsl/span | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index c13a7c8..23c58c9 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -21,28 +21,11 @@ #include // for byte #include // for narrow_cast, narrow +#include // for array #include // for ptrdiff_t, size_t, nullptr_t #include // for reverse_iterator, distance, random_access_... #include // for enable_if_t, declval, is_convertible, inte... -// forward declaring std::array. -// pulling the entire array header is unnecessary for span because array is only used for a few constructors. -// The end user's logic will pull in the actual definition of array if they need it. -// To do: find a way to forward declare array for Apple Clang -#if defined(__APPLE__) -#include -#else -namespace std -{ -template -#if defined(__clang__) -struct array; -#else -class array; -#endif // defined(__clang__) -} -#endif // defined(__APPLE__) - #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push)