Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 15:58:29 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268499 - head/usr.bin/users
Message-ID:  <201407101558.s6AFwTfP061829@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101558.s6AFwTfP061829>