Skip to content

Commit

Permalink
Update wpilibNewCommands/src/main/native/cpp/frc2/command/CommandPtr.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jade <spacey-sooty@proton.me>
  • Loading branch information
narmstro2020 and spacey-sooty authored Oct 23, 2024
1 parent 47abdc8 commit 44f542e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ CommandPtr CommandPtr::Fork(CommandPtr&& other) && {

CommandPtr CommandPtr::Fork(std::vector<CommandPtr>&& other) && {
AssertValid();
std::vector<Command*> vec{m_ptr.get()};
for (auto&& ptr : other) {
vec.emplace_back(std::move(ptr).Unwrap().get());
}
m_ptr = make_unique<ScheduleCommand>(std::span<Command*>(vec));
other.emplace_back(std::move(m_ptr).get());
m_ptr = make_unique<ScheduleCommand>(std::span<Command*>(other));

Check failure on line 70 in wpilibNewCommands/src/main/native/cpp/frc2/command/CommandPtr.cpp

View workflow job for this annotation

GitHub Actions / Build - Windows

'<function-style-cast>': cannot convert from 'std::vector<frc2::CommandPtr,std::allocator<frc2::CommandPtr>>' to 'std::span<frc2::Command *,18446744073709551615>'

Check failure on line 70 in wpilibNewCommands/src/main/native/cpp/frc2/command/CommandPtr.cpp

View workflow job for this annotation

GitHub Actions / Build - Windows

'make_unique': identifier not found
return std::move(*this);
}

Expand Down

0 comments on commit 44f542e

Please sign in to comment.