mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 22:27:46 +00:00
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
This commit is contained in:
parent
31bdf7bd11
commit
5d2fdc2e8c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue