diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-01 15:00:54 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-01 16:44:55 +0100 |
commit | 5d2fdc2e8c8b3d95c0a82f7f910ab63cec00cbbb (patch) | |
tree | 94154696ac431acefbe342b645c466ca1e20d2ed /src/serialization | |
parent | Merge pull request #4988 (diff) | |
download | monero-5d2fdc2e8c8b3d95c0a82f7f910ab63cec00cbbb.tar.xz |
serialization: Use pos_type instead of streampos
According to [1], the ios_base::streampos member type is deprecated, and
removed in C++17. This type was an alias for pos_type, which this commit
uses instead.
[1]: https://en.cppreference.com/w/cpp/io/ios_base
Diffstat (limited to 'src/serialization')
-rw-r--r-- | src/serialization/binary_archive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/binary_archive.h b/src/serialization/binary_archive.h index f47a4494d..242b8fd68 100644 --- a/src/serialization/binary_archive.h +++ b/src/serialization/binary_archive.h @@ -99,7 +99,7 @@ struct binary_archive<false> : public binary_archive_base<std::istream, false> { explicit binary_archive(stream_type &s) : base_type(s) { - stream_type::streampos pos = stream_.tellg(); + stream_type::pos_type pos = stream_.tellg(); stream_.seekg(0, std::ios_base::end); eof_pos_ = stream_.tellg(); stream_.seekg(pos); |