From b9f5301bdc89e72ce756f1a878c211f03146e747 Mon Sep 17 00:00:00 2001
From: Max Kahnt <max.kahnt@fu-berlin.de>
Date: Mon, 25 Sep 2017 14:02:35 +0200
Subject: [PATCH] Add deprecation messages.

---
 dune/solvers/common/genericvectortools.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dune/solvers/common/genericvectortools.hh b/dune/solvers/common/genericvectortools.hh
index 269b8ff4..50d2641e 100644
--- a/dune/solvers/common/genericvectortools.hh
+++ b/dune/solvers/common/genericvectortools.hh
@@ -30,8 +30,10 @@
 struct GenericVector
 {
 
+
     //! Write vector to given stream
     template <class VectorType>
+    DUNE_DEPRECATED_MSG("Please use Dune::MatrixVector::Generic::writeBinary instead.")
     static void writeBinary(std::ostream& s, const VectorType& v)
     {
       Dune::MatrixVector::Generic::writeBinary(s, v);
@@ -39,6 +41,7 @@ struct GenericVector
 
     //! Read vector from a given stream
     template <class VectorType>
+    DUNE_DEPRECATED_MSG("Please use Dune::MatrixVector::Generic::readBinary instead.")
     static void readBinary(std::istream& s, VectorType& v)
     {
         Dune::MatrixVector::Generic::readBinary(s, v);
@@ -86,6 +89,7 @@ struct GenericVector
 
     //! Set vector to zero at indices that are true in bitvector recursivly
     template <class VectorType, class BitVectorType>
+    DUNE_DEPRECATED_MSG("Please use Dune::MatrixVector::Generic::truncate instead.")
     static void truncate(VectorType& v, const BitVectorType& tr)
     {
         Dune::MatrixVector::Generic::truncate(v, tr);
-- 
GitLab