TurnLeft(int rate)
instead of TurnLeft(TurnRate rate)
where TurnRate
would be an enum
defined to the following:
enum TurnRate
{
TURN_SLOW,
TURN_FAST
};
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]