remove struct member designators from initialization - fixes #3277
- it's C99 syntax, illegal in C++11 braced-init-list - interestingly it's accepted in C++ by GCC and Clang, rejected by MSVC
This commit is contained in:
parent
57027eeee3
commit
4ef8efd554
1 changed files with 7 additions and 7 deletions
|
@ -256,13 +256,13 @@ markers_dispatch_params::markers_dispatch_params(box2d<double> const& size,
|
||||||
double scale,
|
double scale,
|
||||||
bool snap)
|
bool snap)
|
||||||
: placement_params{
|
: placement_params{
|
||||||
.size = size,
|
size,
|
||||||
.tr = tr,
|
tr,
|
||||||
.spacing = get<value_double, keys::spacing>(sym, feature, vars),
|
get<value_double, keys::spacing>(sym, feature, vars),
|
||||||
.max_error = get<value_double, keys::max_error>(sym, feature, vars),
|
get<value_double, keys::max_error>(sym, feature, vars),
|
||||||
.allow_overlap = get<value_bool, keys::allow_overlap>(sym, feature, vars),
|
get<value_bool, keys::allow_overlap>(sym, feature, vars),
|
||||||
.avoid_edges = get<value_bool, keys::avoid_edges>(sym, feature, vars),
|
get<value_bool, keys::avoid_edges>(sym, feature, vars),
|
||||||
.direction = get<direction_enum, keys::direction>(sym, feature, vars)}
|
get<direction_enum, keys::direction>(sym, feature, vars)}
|
||||||
, placement_method(get<marker_placement_enum, keys::markers_placement_type>(sym, feature, vars))
|
, placement_method(get<marker_placement_enum, keys::markers_placement_type>(sym, feature, vars))
|
||||||
, ignore_placement(get<value_bool, keys::ignore_placement>(sym, feature, vars))
|
, ignore_placement(get<value_bool, keys::ignore_placement>(sym, feature, vars))
|
||||||
, snap_to_pixels(snap)
|
, snap_to_pixels(snap)
|
||||||
|
|
Loading…
Add table
Reference in a new issue