mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Move TrajectoryGenerator::SetErrorHandler definition to .cpp (#3920)
Otherwise this function causes linking errors when used on Windows.
This commit is contained in:
@@ -119,9 +119,7 @@ class WPILIB_DLLEXPORT TrajectoryGenerator {
|
||||
*
|
||||
* @param func Error reporting function.
|
||||
*/
|
||||
static void SetErrorHandler(std::function<void(const char*)> func) {
|
||||
s_errorFunc = std::move(func);
|
||||
}
|
||||
static void SetErrorHandler(std::function<void(const char*)> func);
|
||||
|
||||
private:
|
||||
static void ReportError(const char* error);
|
||||
|
||||
Reference in New Issue
Block a user