Quote:
Originally Posted by pipsqueaker
Are you saying that I have to use boost and WPILib's task class?
|
No.
Quote:
|
Also, on the above page, it says the task::run takes the arguments of types FUNCPTR and int. just asking, the fcptr is just the function name without any arguments or parentheses, correct?
|
Yes.
Quote:
|
Also the arguments are of type int, does that mean I can only pass integers?
|
Sorta. Since it's C++ and it allows you to shoot yourself in the foot, you can technically pass in anything that is the same size as an integer. Be wary of this behavior, as integer sizes may vary on other platforms (such as your PC).
I recommend searching these forums for more information, other people have asked the same questions.