[wpiutil] Avoid MSVC warning on span include (#3393)

This commit is contained in:
Peter Johnson
2021-05-26 23:14:04 -07:00
committed by GitHub
parent 4e2c3051be
commit a610379965
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
#include <optional>
#include <type_traits>
#include <vector>
#if __has_include(<span>)
#if __cplusplus >= 202002L && __has_include(<span>)
#include <span>
#endif

View File

@@ -17,7 +17,7 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf
#include <cstddef>
#include <cstdint>
#include <type_traits>
#if __has_include(<span>)
#if __cplusplus >= 202002L && __has_include(<span>)
#include <span>
#endif