]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an unneeded const_cast. 1387/head
authorDavid Wells <drwells@vt.edu>
Wed, 19 Aug 2015 18:08:27 +0000 (14:08 -0400)
committerDavid Wells <drwells@vt.edu>
Wed, 19 Aug 2015 18:08:27 +0000 (14:08 -0400)
include/deal.II/lac/block_vector_base.h

index 241af0b188feff14e34d15b3d43812d8038621dd..b4acb3fa16fc7cdd85bf05a93f3b2a53721c0f81 100644 (file)
@@ -1006,7 +1006,7 @@ namespace internal
     Iterator<BlockVectorType,Constness>::
     Iterator (const Iterator<BlockVectorType,!Constness> &c)
       :
-      parent (const_cast<BlockVectorType *>(c.parent)),
+      parent (c.parent),
       global_index (c.global_index),
       current_block (c.current_block),
       index_within_block (c.index_within_block),

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.