mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 11:04:58 -04:00
Fix boost <1.60 compilation and fix boost 1.73+ warnings
This commit is contained in:
parent
7e78da7772
commit
7aeb503547
13 changed files with 35 additions and 31 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "string_tools.h"
|
||||
#include "storages/portable_storage_template_helper.h" // epee json include
|
||||
#include "serialization/keyvalue_serialization.h"
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
using namespace epee;
|
||||
|
@ -133,11 +134,9 @@ namespace cryptonote
|
|||
//---------------------------------------------------------------------------
|
||||
uint64_t checkpoints::get_max_height() const
|
||||
{
|
||||
std::map< uint64_t, crypto::hash >::const_iterator highest =
|
||||
std::max_element( m_points.begin(), m_points.end(),
|
||||
( boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_1) <
|
||||
boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_2 ) ) );
|
||||
return highest->first;
|
||||
if (m_points.empty())
|
||||
return 0;
|
||||
return m_points.rbegin()->first;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
const std::map<uint64_t, crypto::hash>& checkpoints::get_points() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue