24template <std::derived_from<Command> Base,
typename CRTP>
33 std::make_unique<CRTP>(std::move(*
static_cast<CRTP*
>(
this))));
38 return std::make_unique<CRTP>(std::move(*
static_cast<CRTP*
>(
this)));
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
std::unique_ptr< Command > TransferOwnership() &&override
Definition: CommandHelper.h:37
CommandPtr ToPtr() &&override
Definition: CommandHelper.h:31
A wrapper around std::unique_ptr<Command> so commands have move-only semantics.
Definition: CommandPtr.h:29
Definition: ProfiledPIDCommand.h:18