]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use reinterpret_cast with a pointer to const.
authorDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 00:30:20 +0000 (20:30 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 4 May 2018 01:25:01 +0000 (21:25 -0400)
source/base/data_out_base.cc

index 278120a9a1411c23b66dc0a86c2ecd2296f60eb8..ea47ebd7933a46c5701ad21fc9c6d4f2842a5778 100644 (file)
@@ -285,7 +285,7 @@ namespace
               (uint32_t)compressed_data_length
             }; /* list of compressed sizes of blocks */
 
-        char *encoded_header = encode_block ((char *)&compression_header[0],
+        char *encoded_header = encode_block (reinterpret_cast<const char *>(&compression_header[0]),
                                              4 * sizeof(compression_header[0]));
         output_stream << encoded_header;
         delete[] encoded_header;

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.