Try initializing all of ProfileProperties for GCC 4.9

This commit is contained in:
Patrick Niklaus 2018-02-07 23:12:12 +00:00 committed by Patrick Niklaus
parent d13d6566f8
commit b96d36f482

View File

@ -29,7 +29,8 @@ struct ProfileProperties
: traffic_signal_penalty(0), u_turn_penalty(0),
max_speed_for_map_matching(DEFAULT_MAX_SPEED), continue_straight_at_waypoint(true),
use_turn_restrictions(false), left_hand_driving(false), fallback_to_duration(true),
weight_name{"duration"}, class_names{}, call_tagless_node_function(true)
weight_name{"duration"}, class_names{{}}, excludable_classes{{}},
call_tagless_node_function(true)
{
std::fill(excludable_classes.begin(), excludable_classes.end(), INAVLID_CLASS_DATA);
BOOST_ASSERT(weight_name[MAX_WEIGHT_NAME_LENGTH] == '\0');