diff options
| author | Jordan Maples <jomaples@microsoft.com> | 2020-08-12 12:13:19 -0700 |
|---|---|---|
| committer | Jordan Maples <jomaples@microsoft.com> | 2020-08-12 12:13:19 -0700 |
| commit | afe824490ebae9188be0e96ecff3dbc73b37285c (patch) | |
| tree | f417ff8a8ddfdb4ccfe1d931c64b8c0b9defe44b | |
| parent | 01eaf5bef131ff51274ca57f5ade2d10851aa00b (diff) | |
| download | platform_external_Microsoft-GSL-afe824490ebae9188be0e96ecff3dbc73b37285c.tar.gz platform_external_Microsoft-GSL-afe824490ebae9188be0e96ecff3dbc73b37285c.tar.bz2 platform_external_Microsoft-GSL-afe824490ebae9188be0e96ecff3dbc73b37285c.zip | |
change macro test to use __cplusplus instead of __has_cpp_attribute
| -rw-r--r-- | include/gsl/gsl_util | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gsl/gsl_util b/include/gsl/gsl_util index 2e79605..974655b 100644 --- a/include/gsl/gsl_util +++ b/include/gsl/gsl_util @@ -32,11 +32,11 @@ #endif // _MSC_VER -#if __has_cpp_attribute(nodiscard) >= 201603L +#if defined(__cplusplus) && (__cplusplus >= 201703L) #define GSL_NODISCARD [[nodiscard]] #else #define GSL_NODISCARD -#endif +#endif // defined(__cplusplus) && (__cplusplus >= 201703L) namespace gsl { |
