Replace optional<EdgeWeight> with constant value
This commit is contained in:
committed by
Patrick Niklaus
parent
f65958fc14
commit
84845ffaa6
@@ -10,8 +10,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace extractor
|
||||
@@ -41,8 +39,8 @@ class CompressedEdgeContainer
|
||||
const EdgeDuration duration2,
|
||||
// node-penalties can be added before/or after the traversal of an edge which
|
||||
// depends on whether we traverse the link forwards or backwards.
|
||||
const boost::optional<EdgeWeight> node_weight_penalty = boost::none,
|
||||
const boost::optional<EdgeDuration> node_duration_penalty = boost::none);
|
||||
const EdgeWeight node_weight_penalty = INVALID_EDGE_WEIGHT,
|
||||
const EdgeDuration node_duration_penalty = MAXIMAL_EDGE_DURATION);
|
||||
|
||||
void AddUncompressedEdge(const EdgeID edge_id,
|
||||
const NodeID target_node,
|
||||
|
||||
Reference in New Issue
Block a user