Reorder initialization to fix warnings

This commit is contained in:
Patrick Niklaus 2014-05-06 23:52:04 +02:00
parent 2c0fa2a9f6
commit b7750ff742

View File

@ -45,14 +45,14 @@ EdgeBasedGraphFactory::EdgeBasedGraphFactory(
std::vector<NodeInfo> & m_node_info_list,
SpeedProfileProperties & speed_profile
) : speed_profile(speed_profile),
m_node_based_graph(node_based_graph),
m_number_of_edge_based_nodes(std::numeric_limits<unsigned>::max()),
m_restriction_map(std::move(restriction_map)),
m_node_info_list(m_node_info_list),
m_node_based_graph(node_based_graph),
m_restriction_map(std::move(restriction_map)),
max_id(0)
{
// why not use the copy constructor?
// insert into unordered sets for fast lookup
m_barrier_nodes.insert(
barrier_node_list.begin(),
barrier_node_list.end()