]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the return type of Trilinos's VectorReference::operator=.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 21 Jan 2017 15:50:23 +0000 (08:50 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 21 Jan 2017 15:50:23 +0000 (08:50 -0700)
This was non-intuitive, though it did not make a difference given the particular
semantics of vector references. Fix it anyway.

include/deal.II/lac/trilinos_vector_base.h

index f97536ab6a1aaf8a5201b9867c9bb751098dfe86..17fdc615e332a738e23ebc8cd5a8930a41d1a86d 100644 (file)
@@ -119,7 +119,7 @@ namespace TrilinosWrappers
       /**
        * Same as above but for non-const reference objects.
        */
-      const VectorReference &
+      VectorReference &
       operator = (const VectorReference &r);
 
       /**
@@ -1005,7 +1005,7 @@ namespace TrilinosWrappers
 
 
     inline
-    const VectorReference &
+    VectorReference &
     VectorReference::operator = (const VectorReference &r)
     {
       // as above

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.