Skip to content
Snippets Groups Projects
Commit 59699638 authored by Oliver Sander's avatar Oliver Sander
Browse files

Test whether vectors export 'reference' and 'const_reference'

These are standard types from the STL.  Apparently all dune-istls
vectors do export them.
parent 93505aa0
No related branches found
No related tags found
1 merge request!111Test whether vectors export 'reference' and 'const_reference'
Pipeline #
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment