Skip to content
Snippets Groups Projects
Commit ff69e629 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Change cast type in writeValueBinary.

The reinterpret cast seems to more appropriate in context
of writing of binary values to a stream.
parent 65c84223
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ bool IsFileExisting(const std::string &strFilename); ...@@ -38,7 +38,7 @@ bool IsFileExisting(const std::string &strFilename);
*/ */
template <typename T> void writeValueBinary(std::ostream &out, T const& val) template <typename T> void writeValueBinary(std::ostream &out, T const& val)
{ {
out.write(static_cast<const char*>(&val), sizeof(T)); out.write(reinterpret_cast<const char*>(&val), sizeof(T));
} }
template <typename T> template <typename T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment