]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clarify the signature of a copy constructor. 3481/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 6 Nov 2016 13:47:17 +0000 (08:47 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 6 Nov 2016 13:47:17 +0000 (08:47 -0500)
PVS studio claims that we do not implement a copy constructor for this
iterator. It is likely that (unnecessarily) including the template
arguments here confused PVS studio, so remove them.

include/deal.II/lac/block_vector_base.h

index 7ebd90efbe17241f16677b8988f3c18b59d74d60..69506a8ef087b63db2a7a9863ad66d82f7ceaafd 100644 (file)
@@ -277,9 +277,9 @@ namespace internal
 
 
       /**
-       * Copy constructor.
+       * Copy constructor from an iterator with the same constness.
        */
-      Iterator (const Iterator<BlockVectorType,Constness> &c);
+      Iterator (const Iterator &c);
 
     private:
       /**

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.