[commands] Unbreak build (#3438)

This commit is contained in:
Peter Johnson
2021-06-14 07:35:21 -07:00
committed by GitHub
parent b417d961ec
commit 85144e47ff
2 changed files with 8 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ void SequentialCommandGroup::AddCommands(
}
SequentialCommandGroup SequentialCommandGroup::BeforeStarting(
std::function<void()> toRun, wpi::ArrayRef<Subsystem*> requirements) && {
std::function<void()> toRun, wpi::span<Subsystem* const> requirements) && {
// store all the commands
std::vector<std::unique_ptr<Command>> tmp;
tmp.emplace_back(
@@ -97,7 +97,7 @@ SequentialCommandGroup SequentialCommandGroup::BeforeStarting(
}
SequentialCommandGroup SequentialCommandGroup::AndThen(
std::function<void()> toRun, wpi::ArrayRef<Subsystem*> requirements) && {
std::function<void()> toRun, wpi::span<Subsystem* const> requirements) && {
std::vector<std::unique_ptr<Command>> tmp;
tmp.emplace_back(
std::make_unique<InstantCommand>(std::move(toRun), requirements));