diff --git a/src/core/conversation_file.cpp b/src/core/conversation_file.cpp index 398b3659..92dc73f0 100644 --- a/src/core/conversation_file.cpp +++ b/src/core/conversation_file.cpp @@ -1076,7 +1076,9 @@ bool write_impl(const std::string& path, const SavedConversation& image, const s header_bytes(h, id, payload); bool ok = f.write(h, kHeader); SessionHasher hash(0); - Out out{&f, &hash}; + Out out; + out.f = &f; + out.hash = &hash; if (ok) put_payload(out, image, sources); ok = ok && out.ok && out.n == payload; if (ok) { diff --git a/src/core/conversation_snapshot.cpp b/src/core/conversation_snapshot.cpp index 3f017a48..0ae73629 100644 --- a/src/core/conversation_snapshot.cpp +++ b/src/core/conversation_snapshot.cpp @@ -6,6 +6,7 @@ #include #include #include +#include namespace strata::core { namespace {