The following error occurred while developing using C++. What could be the cause?
Asked
Active
Viewed 127 times
-2
-
4Please don't post images, post text. But in any case it's pretty clear that your function takes one argument, not zero. So that is the cause of the error. – john Jun 11 '22 at 08:47
-
This doesn't address the question, but names that begin with an underscore followed by a capital letter (`_CurrentStatus`, `_StatusChangeCallBack`, `_InputStatus`) and names that contain two consecutive underscores are reserved for use by the implementation. Don't use them in your code. – Pete Becker Jun 11 '22 at 12:29
1 Answers
2
Your parameter is std::function<void(ARTSPlayerController&)>
which takes one argument. Then you try to call your callback _StatusChangeCallback()
which should take one argument, but you didn't pass any.

Ragdoll Car
- 141
- 6