explicit cast to native enum type in switch statements to address error: case value is not a constant expression
(clang version 8.0.0 (trunk 347189))
This commit is contained in:
parent
a1e91dcf35
commit
24425f9ba5
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
markers_placement_params const& params)
|
||||
: placement_type_(placement_type)
|
||||
{
|
||||
switch (placement_type)
|
||||
switch (marker_placement_enum(placement_type))
|
||||
{
|
||||
default:
|
||||
case MARKER_POINT_PLACEMENT:
|
||||
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
~markers_placement_finder()
|
||||
{
|
||||
switch (placement_type_)
|
||||
switch (marker_placement_enum(placement_type_))
|
||||
{
|
||||
default:
|
||||
case MARKER_POINT_PLACEMENT:
|
||||
|
@ -90,7 +90,7 @@ public:
|
|||
// Get next point where the marker should be placed. Returns true if a place is found, false if none is found.
|
||||
bool get_point(double &x, double &y, double &angle, bool ignore_placement)
|
||||
{
|
||||
switch (placement_type_)
|
||||
switch (marker_placement_enum(placement_type_))
|
||||
{
|
||||
default:
|
||||
case MARKER_POINT_PLACEMENT:
|
||||
|
|
Loading…
Reference in a new issue