mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Change C++ CommandPtr to use CommandBase (#4677)
This commit is contained in:
@@ -29,7 +29,7 @@ class CommandHelper : public Base {
|
||||
public:
|
||||
CommandHelper() = default;
|
||||
|
||||
CommandPtr ToPtr() && {
|
||||
CommandPtr ToPtr() && override {
|
||||
return CommandPtr(
|
||||
std::make_unique<CRTP>(std::move(*static_cast<CRTP*>(this))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user