diff --git a/opm/autodiff/BackupRestore.hpp b/opm/autodiff/BackupRestore.hpp index 455c3cac5..21262d9c2 100644 --- a/opm/autodiff/BackupRestore.hpp +++ b/opm/autodiff/BackupRestore.hpp @@ -89,7 +89,7 @@ namespace Opm { template void readData(std::istream& stream, Container& container, size_t datasize) { - stream.read( (char*) container.data(), datasize ); + stream.read( reinterpret_cast( container.data() ), datasize ); } //We need to be careful with string, because string.data() returns something that