diff options
author | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2019-11-15 16:29:41 -0800 |
---|---|---|
committer | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2019-11-15 16:29:41 -0800 |
commit | 128b4356ac1dbd4babc911a0a2544acd097b1dbc (patch) | |
tree | a18b8ca6d4ae847b5ee94327b2c8ac4461eb3d1e /include/gsl/pointers | |
parent | 8e481ebe19e1113fddfeeaa6734cb58a5ae1b69f (diff) | |
download | platform_external_Microsoft-GSL-128b4356ac1dbd4babc911a0a2544acd097b1dbc.tar.gz platform_external_Microsoft-GSL-128b4356ac1dbd4babc911a0a2544acd097b1dbc.tar.bz2 platform_external_Microsoft-GSL-128b4356ac1dbd4babc911a0a2544acd097b1dbc.zip |
changing check from __cplusplus 201703L to __cpp_deduction_guides 201907L
Diffstat (limited to 'include/gsl/pointers')
-rw-r--r-- | include/gsl/pointers | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/gsl/pointers b/include/gsl/pointers index f96d064..ae6f8c5 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -272,15 +272,13 @@ auto make_strict_not_null(T&& t) { return strict_not_null<std::remove_cv_t<std::remove_reference_t<T>>>{std::forward<T>(t)}; } -#if (defined(__cplusplus) && (__cplusplus >= 201703L)) +#if (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201907L)) // deduction guides to prevent the ctad-maybe-unsupported warning -template <class T> -not_null(T ptr) -> not_null<T>; -template <class T> -strict_not_null(T ptr) -> strict_not_null<T>; +template <class T> not_null(T) -> not_null<T>; +template <class T> strict_not_null(T) -> strict_not_null<T>; -#endif // (defined(__cplusplus) && (__cplusplus >= 201703L)) +#endif // (defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201907L)) } // namespace gsl |