[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Updating code to use C++11
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] Updating code to use C++11 |
Date: |
Mon, 25 Jan 2016 15:54:03 +0100 |
On Mon, 25 Jan 2016 14:44:10 +0000 Greg Chicares <address@hidden> wrote:
GC> On 2016-01-25 12:51, Vadim Zeitlin wrote:
GC> > On Mon, 25 Jan 2016 02:58:00 +0000 Greg Chicares <address@hidden> wrote:
GC> [...]
GC> > ---------------------------------- >8
--------------------------------------
GC> > - typedef std::vector<std::string>::const_iterator sci;
GC> > - for(sci i = all_headers.begin(); i != all_headers.end(); ++i)
GC> > + for(const auto & header : all_headers)
GC> > ---------------------------------- >8
--------------------------------------
GC>
GC> Can we write
GC> for(auto const& header : all_headers)
GC> ?
Yes, sure, sorry for not respecting lmi style here, this is what
clang-tidy did on its own and was just a demonstration -- I intend to
review and correct all the changes manually anyhow before submitting them.
GC> First, we need to test the compiler upgrade in the office (this week),
GC> and resolve that awful libtool problem.
Yes, definitely, I'm going to reply to the other message about it (as soon
as I know what to write in it...) a.s.a.p.
VZ