diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index ad8d8bea..f36e436a 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -99,7 +99,7 @@ template std::string repr(T const &val) { out << repr(*val.begin()); std::for_each( std::next(val.begin()), - std::next(val.begin(), std::min(size, repr_max_container_size) - 1), + std::next(val.begin(), std::min(size, repr_max_container_size) - 1), [&out](const auto &v) { out << " " << repr(v); }); if (size <= repr_max_container_size) out << " ";