build: fix Ubuntu 16.04 (GCC 5.4.0) compilation

This commit is contained in:
xiphon 2018-11-06 21:45:00 +00:00
parent a9e03ebc6a
commit 840bf155a0

View file

@ -11069,7 +11069,8 @@ std::string wallet2::export_outputs_to_str() const
std::stringstream oss;
boost::archive::portable_binary_oarchive ar(oss);
ar << export_outputs();
const auto& outputs = export_outputs();
ar << outputs;
std::string magic(OUTPUT_EXPORT_FILE_MAGIC, strlen(OUTPUT_EXPORT_FILE_MAGIC));
const cryptonote::account_public_address &keys = get_account().get_keys().m_account_address;