Skip to content

Commit

Permalink
Command: use span instead of vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Jan 25, 2025
1 parent 36a26d4 commit 88be9c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <cstdint>
#include <filesystem>
#include <ostream>
#include <span>
#include <string>
#include <string_view>
#include <sys/types.h>
Expand Down Expand Up @@ -56,7 +57,7 @@ struct Command {
arguments.emplace_back(arg);
return *this;
}
Command& addArgs(const std::vector<std::string>& args) {
Command& addArgs(const std::span<const std::string> args) {
arguments.insert(arguments.end(), args.begin(), args.end());
return *this;
}
Expand Down

0 comments on commit 88be9c4

Please sign in to comment.