fix ambiguity in TransportFSM Event constructors
This commit is contained in:
parent
dc19aa866b
commit
eb1468718a
@ -95,14 +95,16 @@ struct TransportFSM
|
|||||||
{
|
{
|
||||||
assert (t == Locate);
|
assert (t == Locate);
|
||||||
}
|
}
|
||||||
Event (EventType t, double sp, bool ab, bool cs, bool ad)
|
/* here we drop the event type as the first argument in order
|
||||||
: type (t)
|
disambiguate from the StopTransport case above (compiler can
|
||||||
, abort_capture (ab)
|
cast double-to-bool and complains. C++11 would allow "=
|
||||||
, clear_state (cs)
|
delete" as an alternate fix, but this is fine.
|
||||||
|
*/
|
||||||
|
Event (double sp, bool ad)
|
||||||
|
: type (SetSpeed)
|
||||||
, speed (sp)
|
, speed (sp)
|
||||||
, as_default (ad)
|
, as_default (ad)
|
||||||
{
|
{
|
||||||
assert (t == SetSpeed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void* operator new (size_t);
|
void* operator new (size_t);
|
||||||
|
Loading…
Reference in New Issue
Block a user