Skip to content
Snippets Groups Projects
Commit a11e142a authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Properly deprecate make_array.hh

parent 13c61066
Branches
Tags
1 merge request!1076Remove deprecated code parts or properly deprecate parts that were meant for removal
......@@ -57,6 +57,10 @@
- The deprecated compatibility header `optional.hh` is removed. Include
`<optional>` instead.
- The compatibility header `make_array.hh` is deprecated and will be
removed after Dune 2.8. Use deduction guide of `std::array` or
`std::to_array`.
# Release 2.8
- Set minimal required CMake version in cmake to >= 3.13.
......
......@@ -8,6 +8,9 @@
#include <experimental/array>
#endif
#warning make_array.hh is deprecated and will be removed after Dune 2.8. \
Use deduction guide of `std::array` or `std::to_array`.
namespace Dune {
namespace Std {
......
......@@ -10,6 +10,7 @@
#include <dune/common/std/make_array.hh>
#include <dune/common/classname.hh>
#include <dune/common/deprecated.hh>
#include <dune/common/fvector.hh>
#include <dune/common/streamoperators.hh>
......@@ -21,6 +22,8 @@ void f(const std::array<T, n> &a)
}
int main() {
DUNE_NO_DEPRECATED_BEGIN
// check that make_array works
f(Dune::Std::make_array(1, 2));
f(Dune::Std::make_array(1, 2, 3));
......@@ -34,4 +37,6 @@ int main() {
Dune::FieldVector<double, 2> x(0);
f(Dune::Std::make_array(x, x));
DUNE_NO_DEPRECATED_END
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment