From 9a81d9ce37a4361f8d3f4b2a6492d7f0e17e8869 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 30 Sep 2013 13:26:36 +0000 Subject: [PATCH] Provide a copy constructor for the accessor class. This should make Intel ICC happy. git-svn-id: https://svn.dealii.org/trunk@31028 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/petsc_matrix_base.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deal.II/include/deal.II/lac/petsc_matrix_base.h b/deal.II/include/deal.II/lac/petsc_matrix_base.h index 6ef2b51596..8a64919480 100644 --- a/deal.II/include/deal.II/lac/petsc_matrix_base.h +++ b/deal.II/include/deal.II/lac/petsc_matrix_base.h @@ -84,6 +84,11 @@ namespace PETScWrappers const size_type row, const size_type index); + /** + * Copy constructor. + */ + Accessor (const Accessor &a); + /** * Row number of the element * represented by this @@ -1364,6 +1369,18 @@ namespace PETScWrappers } + inline + const_iterator::Accessor:: + Accessor (const Accessor &a) + : + matrix(a.matrix), + a_row(a.a_row), + a_index(a.a_index), + colnum_cache (a.colnum_cache), + value_cache (a.value_cache) + {} + + inline const_iterator::Accessor::size_type const_iterator::Accessor::row() const -- 2.39.5