mirror of
https://github.com/microsoft/GSL.git
synced 2025-04-14 05:58:35 -04:00
fix apple clang forward declaration
This commit is contained in:
parent
ac37004274
commit
89271b89c1
@ -68,11 +68,11 @@ namespace std
|
|||||||
// array is only used for a few constructors, so pulling the entire header is unnecessary for span.
|
// 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.
|
// The end user's logic will pull in the actual definition of array if they need it.
|
||||||
template <class Type, std::size_t Sz>
|
template <class Type, std::size_t Sz>
|
||||||
#if defined(_MSC_VER) || (defined(__GNUC__) && !defined(__clang__))
|
#if defined(__clang__) || defined(__APPLE__)
|
||||||
class array;
|
|
||||||
#else
|
|
||||||
struct array;
|
struct array;
|
||||||
#endif // defined(_MSC_VER) || (defined(__GNUC__) && !defined(__clang__))
|
#else
|
||||||
|
class array;
|
||||||
|
#endif // defined(__clang__) || defined(__APPLE__)
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace gsl
|
namespace gsl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user