mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
wrapping string_view checks in deduction guide checks to prevent 'macro unused' errors
This commit is contained in:
parent
9720cc552a
commit
c4a2ce6cc8
@ -31,12 +31,15 @@
|
|||||||
#include <vector> // for vector
|
#include <vector> // for vector
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
// the string_view include and macro are used in the deduciton guide verification
|
||||||
|
#if (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L))
|
||||||
#ifdef __has_include
|
#ifdef __has_include
|
||||||
#if __has_include(<string_view>)
|
#if __has_include(<string_view>)
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#define HAS_STRING_VIEW
|
#define HAS_STRING_VIEW
|
||||||
#endif
|
#endif // __has_include(<string_view>)
|
||||||
#endif
|
#endif // __has_include
|
||||||
|
#endif // (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L))
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gsl;
|
using namespace gsl;
|
||||||
|
Loading…
Reference in New Issue
Block a user