From 59699638e6224ac8e6b920b356c98641ce939c7b Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Fri, 4 Aug 2017 16:52:29 +0200
Subject: [PATCH] Test whether vectors export 'reference' and 'const_reference'

These are standard types from the STL.  Apparently all dune-istls
vectors do export them.
---
 dune/istl/test/vectortest.hh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dune/istl/test/vectortest.hh b/dune/istl/test/vectortest.hh
index 1a8538b5f..361ecd3a7 100644
--- a/dune/istl/test/vectortest.hh
+++ b/dune/istl/test/vectortest.hh
@@ -73,6 +73,12 @@ namespace Dune
     static_assert(std::is_same<typename Vector::ConstIterator, typename Vector::const_iterator>::value,
                   "'ConstIterator' and 'const_iterator' are not the same type");
 
+    // Test reference types
+    static_assert(std::is_same<typename Vector::reference, typename Vector::reference>::value,
+                  "Vector does not export 'reference'");
+    static_assert(std::is_same<typename Vector::const_reference, typename Vector::const_reference>::value,
+                  "Vector does not export 'const_reference'");
+
     // Test the const_iterator
     testRandomAccessIterator(v.begin(), v.end(), noop);
 
-- 
GitLab