svn commit: r268499 - head/usr.bin/users
Ed Schouten
ed at FreeBSD.org
Thu Jul 10 15:58:29 UTC 2014
Author: ed
Date: Thu Jul 10 15:58:28 2014
New Revision: 268499
URL: http://svnweb.freebsd.org/changeset/base/268499
Log:
Don't use auto, as we also need to support GCC 4.2.
Modified:
head/usr.bin/users/users.cc
Modified: head/usr.bin/users/users.cc
==============================================================================
--- head/usr.bin/users/users.cc Thu Jul 10 15:56:15 2014 (r268498)
+++ head/usr.bin/users/users.cc Thu Jul 10 15:58:28 2014 (r268499)
@@ -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;
More information about the svn-src-all
mailing list