mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
deprecating strided_span
This commit is contained in:
parent
e026971c03
commit
eb995b3671
@ -1781,7 +1781,7 @@ GSL_SUPPRESS(bounds.4) // NO-FORMAT: attribute
|
|||||||
// strided_span is an extension that is not strictly part of the GSL at this time.
|
// strided_span is an extension that is not strictly part of the GSL at this time.
|
||||||
// It is kept here while the multidimensional interface is still being defined.
|
// It is kept here while the multidimensional interface is still being defined.
|
||||||
template <typename ValueType, std::size_t Rank>
|
template <typename ValueType, std::size_t Rank>
|
||||||
class strided_span
|
class [[deprecated]] strided_span
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using bounds_type = strided_bounds<Rank>;
|
using bounds_type = strided_bounds<Rank>;
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
// blanket turn off warnings from CppCoreCheck from catch
|
// blanket turn off warnings from CppCoreCheck from catch
|
||||||
// so people aren't annoyed by them when running the tool.
|
// so people aren't annoyed by them when running the tool.
|
||||||
#pragma warning(disable : 26440 26426 4996) // from catch deprecated
|
#pragma warning(disable : 26440 26426) // from catch
|
||||||
|
#pragma warning(disable : 4996) // use of function or classes marked [[deprecated]]
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <catch/catch.hpp> // for AssertionHandler, StringRef, TEST_CASE
|
#include <catch/catch.hpp> // for AssertionHandler, StringRef, TEST_CASE
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
// blanket turn off warnings from CppCoreCheck from catch
|
// blanket turn off warnings from CppCoreCheck from catch
|
||||||
// so people aren't annoyed by them when running the tool.
|
// so people aren't annoyed by them when running the tool.
|
||||||
#pragma warning(disable : 26440 26426 4996) // from catch deprecated
|
#pragma warning(disable : 26440 26426) // from catch
|
||||||
|
#pragma warning(disable : 4996) // multi_span is in the process of being deprecated.
|
||||||
|
// Suppressing warnings until it is completely removed
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
// blanket turn off warnings from CppCoreCheck from catch
|
// blanket turn off warnings from CppCoreCheck from catch
|
||||||
// so people aren't annoyed by them when running the tool.
|
// so people aren't annoyed by them when running the tool.
|
||||||
#pragma warning(disable : 26440 26426 4996) // from catch deprecated
|
#pragma warning(disable : 26440 26426) // from catch deprecated
|
||||||
|
#pragma warning(disable : 4996) // strided_span is in the process of being deprecated.
|
||||||
|
// Suppressing warnings until it is completely removed
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user