Skip to content

Commit

Permalink
deprecating strided_span
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Maples committed Oct 2, 2019
1 parent e026971 commit eb995b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/gsl/multi_span
Original file line number Diff line number Diff line change
Expand Up @@ -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.
// It is kept here while the multidimensional interface is still being defined.
template <typename ValueType, std::size_t Rank>
class strided_span
class [[deprecated]] strided_span
{
public:
using bounds_type = strided_bounds<Rank>;
Expand Down
4 changes: 3 additions & 1 deletion tests/bounds_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#ifdef _MSC_VER
// blanket turn off warnings from CppCoreCheck from catch
// 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

#include <catch/catch.hpp> // for AssertionHandler, StringRef, TEST_CASE
Expand Down
4 changes: 3 additions & 1 deletion tests/multi_span_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#ifdef _MSC_VER
// blanket turn off warnings from CppCoreCheck from catch
// 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

Expand Down
4 changes: 3 additions & 1 deletion tests/strided_span_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#ifdef _MSC_VER
// blanket turn off warnings from CppCoreCheck from catch
// 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

Expand Down

0 comments on commit eb995b3

Please sign in to comment.