Updated for Ubuntu 24.04

This commit is contained in:
MoneroOcean
2024-05-03 20:12:39 +03:00
parent 9ef2d782c1
commit a760b46501
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include <cstdint>
#include <set>
#include <list>
#include <vector>

View File

@@ -48,7 +48,7 @@ template <>
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();
auto pos = stream_.tellg();
stream_.seekg(0, std::ios_base::end);
eof_pos_ = stream_.tellg();
stream_.seekg(pos);