Browse Source

fixed gcc 4.7 build

pull/1334/head
orignal 6 years ago
parent
commit
414ef2bc3d
  1. 3
      libi2pd_client/AddressBook.cpp

3
libi2pd_client/AddressBook.cpp

@ -445,7 +445,8 @@ namespace client
} }
else else
{ {
m_Addresses.emplace (name, std::make_shared<Address>(ident->GetIdentHash ())); //m_Addresses.emplace (name, std::make_shared<Address>(ident->GetIdentHash ()));
m_Addresses[name] = std::make_shared<Address>(ident->GetIdentHash ()); // for gcc 4.7
m_Storage->AddAddress (ident); m_Storage->AddAddress (ident);
if (is_update) if (is_update)
LogPrint (eLogInfo, "Addressbook: added new host: ", name); LogPrint (eLogInfo, "Addressbook: added new host: ", name);

Loading…
Cancel
Save