Add missing #include if built with GSL_USE_STD_BYTE=1

cstddef was being included to detect whether GSL_USE_STD_BYTE should be
set to 0 or 1. But if the user provided GSL_USE_STD_BYTE no detection is
required and the header was never included.
This commit is contained in:
Cristian Morales Vega 2019-11-08 16:37:23 +00:00
parent 9939d5889b
commit b213c89700

View File

@ -87,6 +87,10 @@
#define byte_may_alias
#endif // defined __clang__ || defined __GNUC__
#if GSL_USE_STD_BYTE
#include <cstddef>
#endif
namespace gsl
{
#if GSL_USE_STD_BYTE