Skip to content

Commit

Permalink
refactor: work around sign conversion warning (hsutter#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP authored and zaucy committed Dec 5, 2023
1 parent 821588e commit a3d28b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/cpp2util.h
Original file line number Diff line number Diff line change
Expand Up @@ -1526,9 +1526,7 @@ struct args_t : std::vector<std::string_view>
inline auto make_args(int argc, char const* const* argv) -> args_t
{
auto ret = args_t{argc, argv};
for (auto i = 0; i < argc; ++i) {
ret[i] = std::string_view{argv[i]};
}
std::copy(argv, argv + argc, ret.data());
return ret;
}

Expand Down

0 comments on commit a3d28b4

Please sign in to comment.