Skip to content

Commit f701e5f

Browse files
committed
Replace boost::unordered_map with std::unordered_map
1 parent 4ed7955 commit f701e5f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

middle-pgsql.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ using namespace std;
5151
#include <cstdlib>
5252
#include <cstring>
5353
#include <ctime>
54+
#include <unordered_map>
5455
#include <boost/format.hpp>
55-
#include <boost/unordered_map.hpp>
5656

5757
enum table_id {
5858
t_node, t_way, t_rel
@@ -401,7 +401,7 @@ size_t middle_pgsql_t::local_nodes_get_list(nodelist_t &out, const idlist_t nds)
401401
int countPG = PQntuples(res);
402402

403403
//store the pg results in a hashmap and telling it how many we expect
404-
boost::unordered_map<osmid_t, osmNode> pg_nodes(countPG);
404+
std::unordered_map<osmid_t, osmNode> pg_nodes(countPG);
405405

406406
for (int i = 0; i < countPG; i++) {
407407
osmid_t id = strtoosmid(PQgetvalue(res, i, 0), nullptr, 10);
@@ -427,7 +427,7 @@ size_t middle_pgsql_t::local_nodes_get_list(nodelist_t &out, const idlist_t nds)
427427
size_t wrtidx = 0;
428428
for (size_t i = 0; i < nds.size(); ++i) {
429429
if (std::isnan(out[i].lat)) {
430-
boost::unordered_map<osmid_t, osmNode>::iterator found = pg_nodes.find(nds[i]);
430+
std::unordered_map<osmid_t, osmNode>::iterator found = pg_nodes.find(nds[i]);
431431
if(found != pg_nodes.end()) {
432432
out[wrtidx] = found->second;
433433
++wrtidx;

osmdata.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "node-ram-cache.hpp"
55

66
#include <boost/thread/thread.hpp>
7-
#include <boost/unordered_map.hpp>
87
#include <boost/thread.hpp>
98
#include <boost/version.hpp>
109

0 commit comments

Comments
 (0)