diff options
Diffstat (limited to 'include/gsl/multi_span')
-rw-r--r-- | include/gsl/multi_span | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gsl/multi_span b/include/gsl/multi_span index d2b2a69..3a2d982 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -57,6 +57,11 @@ #endif // _MSC_VER < 1910 #endif // _MSC_VER +#if __clang__ || __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + // GCC 7 does not like the signed unsigned missmatch (size_t ptrdiff_t) // While there is a conversion from signed to unsigned, it happens at // compiletime, so the compiler wouldn't have to warn indiscriminently, but @@ -2261,4 +2266,8 @@ general_span_iterator<Span> operator+(typename general_span_iterator<Span>::diff #pragma GCC diagnostic pop #endif // __GNUC__ > 6 +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif + #endif // GSL_MULTI_SPAN_H |