mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 01:01:06 +00:00
Don't use auto, as we also need to support GCC 4.2.
This commit is contained in:
parent
975f912456
commit
63cdd39993
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268499
|
@ -57,7 +57,7 @@ main(int argc, char **)
|
|||
endutxent();
|
||||
|
||||
if (!names.empty()) {
|
||||
auto last = names.end();
|
||||
std::set<string>::iterator last = names.end();
|
||||
--last;
|
||||
copy(names.begin(), last, ostream_iterator<string>(cout, " "));
|
||||
cout << *last << endl;
|
||||
|
|
Loading…
Reference in a new issue