mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
add back array header, will remove in separate pr
This commit is contained in:
parent
d2fdeda06e
commit
4a6a7a095d
@ -21,28 +21,11 @@
|
||||
#include <gsl/gsl_byte> // for byte
|
||||
#include <gsl/gsl_util> // for narrow_cast, narrow
|
||||
|
||||
#include <array> // for array
|
||||
#include <cstddef> // for ptrdiff_t, size_t, nullptr_t
|
||||
#include <iterator> // for reverse_iterator, distance, random_access_...
|
||||
#include <type_traits> // 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 <array>
|
||||
#else
|
||||
namespace std
|
||||
{
|
||||
template <class Type, std::size_t Sz>
|
||||
#if defined(__clang__)
|
||||
struct array;
|
||||
#else
|
||||
class array;
|
||||
#endif // defined(__clang__)
|
||||
}
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#pragma warning(push)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user